Date.get
$date.get($field) -> number|string
Description
Return the given field of the date object.
The fields correspond to the keys present when calling toMap.
$date = Date.create('2033-03-31 13:21:45') $date.get('monthName') //= 'March' $date.get('minute') //= 21 $date.toMap() //= { // day: 31 // dayName: 'Thursday' // dayNameShort: 'Thu' // dayOfWeek: 4 // dayOfYear: 89 // hour: 13 // minute: 21 // month: 3 // monthName: 'March' // monthNameShort: 'Mar' // second: 45 // year: 2033 // }