Answers for "AttributeManager reading in a two digit year" https://knowledge.safe.com/questions/72055/attributemanager-reading-in-a-two-digit-year.html The latest answers for the question "AttributeManager reading in a two digit year" Answer by takashi https://knowledge.safe.com/answers/72061/view.html

Hi @dta255, the format specifier %y (two-digit year) is not supported to parse a date/time string. See also here: Date/Time Functions

If you are sure that the date always belongs to the 21st century, simply replace the last two digits (xx) in the date string with '20xx', then parse the resulting date string with %d-%b-%Y.

@DateTimeParse(@ReplaceRegEx(02-JUL-08,"^(.+)(..)$",\120\2),%d-%b-%Y)
Fri, 08 Jun 2018 19:34:14 GMT takashi
Answer by debbiatsafe https://knowledge.亚搏在线safe.com/answers/72060/view.html

Hi @dta255

Unfortunately, you've run into a known issue where DateTimeParse function and the DateTimeConverter transformer is unable to read in two digit years. Attached is a workspace that will convert two-digit year values to four-digit years by prefixing '20'. If you have any year values earlier than 2000, you will have to make edits the workspace.

I hope this helps.

2digityear-to-4digityear.fmw
Fri, 08 Jun 2018 19:16:33 GMT debbiatsafe