DateToString() Invalid Format [%mmmm]
Posted: Fri Jan 15, 2016 5:29 pm
Can someone help tell me what I'm doing wrong? My data is comes in in the following format YYMM and I'm trying to get the long month name.
So to translate the data this how the dates would read:
First I declare a stage variable to get the integer into a date datatype
Then the part I'm struggling with is getting the long month name:
But then I get this error:
I verified the data format with IBM so I'm not sure why I'm getting this error.
Code: Select all
Sample Data as Integer
---------------------------
1501
1502
1503
Code: Select all
Real Dates
------------
2015-01-01
2015-02-01
2015-03-01
Code: Select all
WaveDt = DateFromComponents(YearFromDate(CurrentDate())[1,2] : DSLink13.WAVE[1,2],DSLink13.WAVE[3,2],"01")
Code: Select all
DateToString(WaveDt,"%mmmm")
Code: Select all
APT_CombinedOperatorController,0: Caught exception from runLocally(): APT_ParseError: Parsing parameters "%mmmm" for conversion "string=string_from_date[%yyyy-%mm-%dd](date)": APT_Conversion_String_Date: Invalid Format [%mmmm] used for string_from_date type conversion.