Skip to main content
Solved

Can FME expose a "day of the week" attribute at the time of running the workbench?

  • September 1, 2021
  • 2 replies
  • 35 views

Forum|alt.badge.img

Hi all,

I wonder if it is possible to have FME expose the day of the week at the time of running the workbench?

 

E.g. If the workbench is running today I would like to have an attribute "day_of_week" that has "Wednesday" as a value.

If it is run tomorrow the attribute should read "Thursday" etc etc

 

Thanks!

Ed

Best answer by nielsgerrits

One way to do this is to use a DateTimeStamper followed by a DateTimeConverter.

%A for "Full English weekday name"

 

If you want to do it in one go you can use

@DateTimeFormat(@DateTimeNow(),%A)

in for example an AttributeCreator or a fanout.

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

2 replies

nielsgerrits
VIP
  • Best Answer
  • September 1, 2021

One way to do this is to use a DateTimeStamper followed by a DateTimeConverter.

%A for "Full English weekday name"

 

If you want to do it in one go you can use

@DateTimeFormat(@DateTimeNow(),%A)

in for example an AttributeCreator or a fanout.


Forum|alt.badge.img
  • Author
  • September 1, 2021

That was quick. And good!

 

Thanks Niels 👍


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