Reformat Dec 15 2011 3:17PM as timestamp

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
tbtcust
Premium Member
Premium Member
Posts: 230
Joined: Tue Mar 04, 2008 9:07 am

Reformat Dec 15 2011 3:17PM as timestamp

Post by tbtcust »

I have a date in the following format Dec 15 2011 3:17PM.

How can I reformat the date as a timestamp (yyyymmddhhnnss)?

Thanks in advance for any help.\
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Use StringToTimestamp() if you actually want a timestamp. For the format you posted, do that and then convert it back to a number.
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

See the Parallel Job Developer's Guide Chapter 2. Designing parallel jobs. Look under the "Date and time formats" section for all the possible date and time format tags to choose from.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply