date internal format

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
satya99
Participant
Posts: 104
Joined: Thu Nov 30, 2006 1:22 pm

date internal format

Post by satya99 »

How to convert timestamp to internal format?

ex: 1999-12-28 00:00:27

Thanks
satya
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You would use IConv and do the date and time portions separately - 'D' for data and 'MT' for time.
-craig

"You can never have too many knives" -- Logan Nine Fingers
satya99
Participant
Posts: 104
Joined: Thu Nov 30, 2006 1:22 pm

Post by satya99 »

chulett wrote:You would use IConv and do the date and time portions separately - 'D' for data and 'MT' for time. ...
I need to compare timestamp, Do i need to convert into internal format then compare or can i compare the timestamp?
satya
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Depends on the external format your timestamp is in. If it is ISO like - "YYYY-MM-DD HH24:MI:SS" - then you can compare those strings directly.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply