Skip to main content
Solved

The DateTimeConverter format y%#### does not work the way I understand it should. Please help.

  • December 13, 2023
  • 1 reply
  • 34 views

deanr
Contributor
Forum|alt.badge.img
  • Contributor

I am sending this date, Oct-23, through the DateTimeConverter. I have set t he input format as %b-%y2099. The DateTimeConverter is failing to parse the date with the message "Attribute(string: UTF-8)         : `fme_expression_warnings{0}.message' has value `Failed to evaluate expression '@DateTimeParse(Oct-23,%b-%y2099,repair)'. Result is set to null'".

 

What am I doing wrong?

 

I have attached a sample project that demonstrates the failure.

My FME Form version is FME(R) 2023.1.1.0 (20230928 - Build 23631 - WIN64).

 

https://docs.safe.com/fme/2023.1/html/FME-Form-Documentation/FME-Transformers/!Transformer_Parameters/Date-Time-Functions.htm#Format

Best answer by deanr

I solved my problem. The input string appears to need a day inserted, e.g., Oct-23 -> Oct-01-23.

View original
Did this help you find an answer to your question?

1 reply

deanr
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • Best Answer
  • December 13, 2023

I solved my problem. The input string appears to need a day inserted, e.g., Oct-23 -> Oct-01-23.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings