Skip to main content
Question

Add days to date attribute with DateTimeCalculator

  • May 18, 2017
  • 1 reply
  • 128 views

ngstoke
Contributor
Forum|alt.badge.img+1

Hello FME Users,

I have an attribute field (Planned Drilling Days) that has the number of days a drilling operation will take to complete. I'm trying to take these days and add them to the date the drilling operation starts (Spud/Frac Start Date) in order to determine on what date operations will be completed and populating a new attribute (Spud/Frac End Date). I've been trying the DateTimeCalculator but the results are being rejected.

Do I need to format the Planned Drilling Days first with DateFormatter (%d) before I send this into the DateTimeCalculator?

Thanks in advance for the help.

1 reply

ngstoke
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • May 18, 2017

Just got off chat with Safe. It was rejecting because I had it set to write to an attribute that was already created (Spud/Frac End Date) I had to create a new attribute in the Result to get it to populate.

I'm currently using FME 2017.0.1 Build 17288.

Safe informed me that this issue is fixed in the beta version of 2017.1


Reply


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