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
  • 63 views

deanr
Contributor
Forum|alt.badge.img+2

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

deanr
Contributor
Forum|alt.badge.img+2
  • 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.