Question

display previous month date

  • 22 July 2015
  • 5 replies
  • 11 views

Badge
Hi,

 

 

Currently my reader read's results in July for June and I have time stamper to disply the date, it displays July date, is there anyway I can have a transformer that will display June date for June results but i always run the workbench in current month for previous month.

 

 

Thank you

5 replies

Userlevel 2
Badge +17
Hi,

 

 

I'm unclear your requirement. If you run the workspace at July 31, for example, what date string should be created?

 

 

Takashi
Badge +2
Create an attribute for date with constant value in attribute creator instad of using time stamper.
Badge
Takashi, I am running a data that is June and I run the FME on July 1, So when I run it displays results as with July date because I have TimeStamper, but I would like it to display June.

 

 

Pratap, I am bit confused with how attribute creator can give me previous month date.  Since I am very new to FME , I am still learning.

 

 

Thank you

 

 
Userlevel 2
Badge +17
Does this help you?

 

 

 

See also this article.

 

Formating Dates Using the DateFormatter Transformer (https://knowledge.safe.com/articles/Samples_and_Demos/Formating-dates-using-the-DATEFORMATTER-transformer)
Badge
Takashi, It worked.  Thank you so much for all your help!

Reply