Date and Time Methods
- Work with Date and Time data
- Examples: beginningOfLastWeek()/endOfLastWeek(), beginningOfNextMonth()/endOfNextMonth(), dateDiff(), now(), nowDateTime(), minutesAgo(), quartersAgo(), monthsAgo(), yearsAgo()
beginningOfLastWeek() - date and time for the beginning of last week in GMT (yyyy-mm-dd hh:mm:ss).
beginningofNextMonth() - date and time for the beginning of next month in GMT.
dateDiff() - calculates the difference between two dates.
endOfLastWeek() - date and time for the end of last week in GMT.
endOfNextMonth() - date and time for the end of next month in GMT.
minutesAgo()/quertersAgo()/monthsAgo()/yearsAgo() - returns the date and time a specified number of minutes/quarters/months/years ago.
now() - current date.
nowDateTime() - current date and time in the user-defined format.