All Commands
All Math & Logic
Commands
AGE
This function will either determine the age of a specified date or the difference between two dates.
Number | Name | Default | Type | Description |
---|---|---|---|---|
1 | format | S | String | The format of the returned age. S = Seconds |
2 | date | String | The Date to compare | |
3 | date format | -1 | Numeric | The format of the submitted date, as defined below.
Hours, minutes and seconds are optional (00:00:00 will be used if not submitted) and seconds can be decimal. |
4 | date_2 | The Current Date & Time | String | The date to compare with. |
5 | date_2_format | date 1 format | Integer | The format of date 2 |
6 | timezone | GMT | String | The Time Zone to use for the comparison |
Auto Format Example
4 years 208 days 14 hours 45 minutes
Example 1 Age. Example
57
Example 2 Between Dates in Months Example
19
Same Day Example Example
0