dateTime

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

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

dateTime

# Examples

sort cards dateTime by field "Last Modified Date"

# Description

Use the dateTime keyword when sort 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 date and time formats and sorts them in time order, rather than alphabetical or numeric order.

# Tags

# See

- **command:** sort, sort container - **glossary:** keyword, LiveCode, command, container, format, sort - **keyword:** field, text