dateTime

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
dateTime
Summary

Used with the sort and sort container commands to sort by date and/or time.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
sort cards dateTime by field "Last Modified Date"
RelatedCommand: sort, sort container
Glossary: keyword, LiveCode, command, container, format, sort
Keyword: field, text
Description

Use the dateTime keyword when sorting by a field or portion of a container that is a date or time.

Alphabetical sorting does not take the special format of dates and times into account. For example, a normal sort places 11:30 AM after 2:00 AM, because 2 is greater than 1. The dateTime keyword recognizes all LiveCode's date and time formats and sorts them in time order, rather than alphabetical or numeric order.

Tagsmath