Page 1 of 1

Changing date format from YYYY-MM-DD to DD-MON-YY

Posted: Wed Feb 12, 2014 8:33 am
by vinothkumar
Hi,
How can I change date format from "YYYY-MM-DD" to "DD-MON-YY" in parallel jobs.

Thanks
Vinoth

Posted: Wed Feb 12, 2014 8:43 am
by chulett
So... as strings, I assume?

Posted: Wed Feb 12, 2014 9:25 am
by crystal_pup
DateToString(DSJobStartDate,"%dd-%mmm-%yyyy")

I used DSJobStartDate as an example, you can substitute it with your input date.

Posted: Wed Feb 12, 2014 3:27 pm
by ray.wurlod
Date data types are stored in a binary form, so do not have formats.
To convert from one string representation to another, convert to and from Date data type with appropriate format strings. That is, use StringToDate() and DateToString() functions, assuming you're using a Transformer stage. Or date_from_string() and string_from_date() if you're using a Modify stage.

Posted: Thu Feb 13, 2014 11:58 pm
by vinothkumar
Thanks. You guys rock as always..