Method __builtin.Sql.Connection()->decode_date() Method decode_date int decode_date(string datestr) Description Converts a database date-only spec to a system time value. Parameter datestr Date spec to decode. Returns Returns the number of seconds since 1970-01-01T00:00:00 UTC to 00:00:00 at the specified date in the current timezone.