Is there any way in Sybase to convert a datetime to a numeric representation of that datetime as a serial value (milliseconds since 1/1/1970). I have stored proc that has an output parameter that is a numeric type. The proc creates a new record and the output param is the key of the created record. In a certain condition, I need the output param to be a date. This can be done by having the output parm be varchar, and doing a little work on the Java side. But it would be cleaner in Java to continue to use the numeric output param.