This project is archived and is in readonly mode.

#246 ✓resolved
blindot (at gmail)

Date.diff error

Reported by blindot (at gmail) | February 5th, 2010 @ 09:40 PM | in 1.2.5.1

The difference in months between these two particular dates returns 0:

Date.parse('01/02/2010').diff(Date.parse('01/03/2010'), 'month')

*My locale settings are currently set to dd/mm/yyyy Try this for mm/dd/yyyy:
Date.parse('02/01/2010').diff(Date.parse('03/01/2010'), 'month')

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

Referenced by

Pages