Represents a date.
compare(Date d) : int
| Compare two dates. Returns a negative number if d is before the subject in time, positive if it is after, or zero if the two dates are equal. When comparing a Date with a DateTime, the time on the bare Date value is assumed to be midnight.
|
compare(DateTime d) : int
| Compare two dates. Returns a negative number if d is before the subject in time, positive if it is after, or zero if the two dates are equal. When comparing a Date with a DateTime, the time on the bare Date value is assumed to be midnight.
|
date_format() : string
| Returns date formatted as normal. // SeeAlso: siteapi.core1.dateformats
|
date_format(string fmt) : string
| Returns date formatted as indicated by fmt. One of: short, med, long, med_day, long_day. Or a custom format. Default is 'short'. // SeeAlso: siteapi.core1.dateformats
|
day_of_week() : int
| Returns the day of the week this date falls on, from Sunday=1 to Saturday=7
|