Difference between revisions of "To days"
From SmartWiki
Julia Decker (talk | contribs) |
|||
Line 17: | Line 17: | ||
(To_days(enddate)-To_days(startdate)) | (To_days(enddate)-To_days(startdate)) | ||
+ | |||
+ | [[Category:Browser Scripts]][[Category:JavaScript Examples]] |
Revision as of 08:35, 15 February 2008
To_days Functions
This function is an addition to the other date functions such as Hour() and Minute().
The syntax is
To_days()
Example 1: will return the today as an integer.
To_days(now())
This is helpful when using it to find the amount of days it took for an activity.
Example: Calculate the number of days between startdate and enddate.
(To_days(enddate)-To_days(startdate))