Skip to main content
Question

display previous month date

  • July 22, 2015
  • 5 replies
  • 93 views

ruby
Contributor
Forum|alt.badge.img+6
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
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.

5 replies

takashi
Celebrity
  • July 23, 2015
Hi,

 

 

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

 

 

Takashi

pratap
Contributor
Forum|alt.badge.img+12
  • Contributor
  • July 24, 2015
Create an attribute for date with constant value in attribute creator instad of using time stamper.

ruby
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • August 3, 2015
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

 

 

takashi
Celebrity
  • August 3, 2015
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)

ruby
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • August 3, 2015
Takashi, It worked.  Thank you so much for all your help!