Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datediff?

Status
Not open for further replies.

nb4884

IS-IT--Management
Aug 2, 2010
141
US
Hi All,

If I have dates like F = 04/05/2011 ans S as 09/24/2010 then datediff ("m", {S}, {F}) gives me 7 months but is there a way to get exact number like 6.3xx etc?

Thanks
 

Try changing the "m" to "d" to get the number of days, then divide by 30.4 to get the fractional months.

 
you would have to use a value other than months ("m") and then convert to get the decimal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top