API Reference › DateTime › DateTime.date
method

DateTime.date

DateTime.date(dt) -> int

The Date (days since 1970) that the instant dt falls on, dropping the time of day.

Example

program Demo {
  handler Step phase Update {
    let today = DateTime.date(Time.now())
  }
}
← All symbols