[Date->Get] gets the current value for one field of the date. Requires one of the following keyword parameters.
Only one field value can be fetched at a time. Note that many of the more common fields can also be retrieved through individual methods.
Keyword | Description |
---|---|
-year | Gets the year field for the date. |
-month | Gets the month field for the date. |
-week | Gets the week field for the date. |
-day | Gets the day field for the date. |
-hour | Gets the hour field for the date. |
-minute | Gets the minute field for the date. |
-second | Gets the second field for the date. |
-weekofyear | Gets the week of year field for the date. |
-weekofmonth | Gets the week of month field for the date. |
-dayofmonth | Gets the day of month field for the date. |
-dayofyear | Gets the day of year field for the date. |
-dayofweek | Gets the day of week field for the date. |
-dayofweekinmonth | Gets the day of week in month field for the date. |
-ampm | Gets the am/pm field for the date. |
-hourofday | Gets the hour of day field for the date. |
-zoneoffset | Gets the time zone offset field for the date. |
-dstoffset | Gets the dst offset field for the date. |
-yearwoy | Gets the year week of year field for the date. |
-dowlocal | Gets the local day of week field for the date. |
-extendedyear | Gets the extended year field for the date. |
-julianday | Gets the julian day field for the date. |
-millisecondsinday | Gets the milliseconds in day field for the date. |
Date Object->get(-year)
Date Object->get(-month)
Date Object->get(-week)
Date Object->get(-day)
Date Object->get(-hour)
Date Object->get(-minute)
Date Object->get(-second)
Date Object->get(-weekofyear)
Date Object->get(-weekofmonth)
Date Object->get(-dayofmonth)
Date Object->get(-dayofyear)
Date Object->get(-dayofweek)
Date Object->get(-dayofweekinmonth)
Date Object->get(-ampm)
Date Object->get(-hourofday)
Date Object->get(-zoneoffset)
Date Object->get(-dstoffset)
Date Object->get(-yearwoy)
Date Object->get(-dowlocal)
Date Object->get(-extendedyear)
Date Object->get(-julianday)
Date Object->get(-millisecondsinday)
Use the [Date->Get] method. The following example returns the -year field of the date object.
Code
date('2011-02-01 08:00:00')->get(-year)
Result
2011
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments