how to get date from date time

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
sush26283
Participant
Posts: 68
Joined: Thu May 20, 2010 11:55 am

how to get date from date time

Post by sush26283 »

i have the source column with date in the format of 2007-07-08 00:00:00.000 how can i get just the date from it and leave out the time part at the target column...
thanks
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

If it's a string (Char/VarChar) datatype, just use the left() function
If it's a timestamp datatype, use TimestampToDate()

Both in transformer and both are <a href="http://publib.boulder.ibm.com/infocente ... umented</a> in the IIS Information Center and the Parallel Job Developer's Guide.

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
Post Reply