Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mhapanka
Creator
Creator

days between start date and end date

I have two fields that are the start_date and end_date in the format mm/dd/yyyy

How do I calculate the time in days between the two? Can someone tell me the code to do this?

1 Solution

Accepted Solutions
achettipalli
Creator
Creator

Mallika,

Just subtract those dates. like end_date- start_date

if they're not in date format then , Date#(end_date,'mm/dd/yyyy') - Date#(start_date,'mm/dd/yyyy')

Good luck!


Avinash

View solution in original post

2 Replies
dplr-rn
Partner - Master III
Partner - Master III

end_date-start_date or if timestamp Interval(end_date-start_date,'D')

achettipalli
Creator
Creator

Mallika,

Just subtract those dates. like end_date- start_date

if they're not in date format then , Date#(end_date,'mm/dd/yyyy') - Date#(start_date,'mm/dd/yyyy')

Good luck!


Avinash