Skip to main content

Convert date to a number

  • July 25, 2019
  • 4 replies
  • 54 views

I have a date and a turnaround time. Need to calculate start date = date - turnaround time.
The problem is date is date format and turnaround time is a number like 28. Is there any way to convert a date to a number?

4 replies

Kamille_Parks11
Forum|alt.badge.img+27

DATEADD({date field}, -{turnaround time field}, 'days')


  • Author
  • New Participant
  • July 25, 2019

DATEADD({date field}, -{turnaround time field}, 'days')


Getting an error unfortunately. is the way to convert the date to a number first?


Kamille_Parks11
Forum|alt.badge.img+27

Getting an error unfortunately. is the way to convert the date to a number first?


You don’t need to, unless I’ve misunderstood what you’re tying to do. DATEADD() is function that lets you generate a date based on a start date (in your case, an end date) and a number of days/weeks/months/etc.

What formula did you type in? Did you replace the words between the {brackets} with the actual names of your fields?


Justin_Barrett
Forum|alt.badge.img+21

Works here.