Skip to main content

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

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.


That was quick. And good!

 

Thanks Niels 👍


Reply