Invalid Format - Date

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
harryhome
Participant
Posts: 112
Joined: Wed Oct 18, 2006 7:10 am

Invalid Format - Date

Post by harryhome »

Hi,

In transformer trying to check a condition on date in IF condition as below

Date_column_input = StringToDate('1999-12-31',"yyyy-mm-dd")

and getting below error:


APT_CombinedOperatorController,0: Operator terminated abnormally: Terminating with exception:APT_ParseError: Parsing parameters "yyyy-mm-dd" for conversion "date=date_from_string[%yyyy-%mm-%dd](string)": APT_Conversion_String_Date: Invalid Format [yyyy-mm-dd] used for string_from_date type conversion
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Try searching here. Its been covered a lot.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

:idea:
Look very carefully at the percent signs in the error message.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ds_sai
Participant
Posts: 27
Joined: Wed Oct 31, 2007 12:22 pm

Post by ds_sai »

Try this....
StringToDate(DSLink3.Testdate,"%yyyy-%mm-%dd")
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

ds_sai wrote:Try this....
StringToDate(DSLink3.Testdate,"%yyyy-%mm-%dd")
If you give a man a fish, he's not hungry for a little while and is then hungry again. If you teach a man to fish, he need never be hungry again.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply