Transforming Dates
Use the @DATE
, @DATEDIF
, and @DATENOW
functions to retrieve dates and times, perform computations on them, and convert them.
This example computes the time that an order is filled
Example 8-7 Computing Time
ORDER_FILLED = @DATE ( 'YYYY-MM-DD HH:MI:SS', 'JTS', @DATE ('JTS', 'YYMMDDHHMISS', ORDER_TAKEN_TIME) + ORDER_MINUTES * 60 * 1000000)