DateTime.fromString()

Converts a string specified in one of the formats DateTime.Format
in unix timestamp (number of seconds elapsed since 01/01/1970)
DateTime.fromString(str:string)

Parameters

Name Type Действие Значение по умолчанию
str string Date string

Return value

The value of seconds elapsed since 01/01/1970 for a given date string

Description

Used in the method onUpdate

Example

let time = DateTime.fromString(DateTime.format(Time[0], 'YYYY.MM.DD'));