Creates a date from the given value.
function (optional
value
as nullable any, optionalculture
as nullable any) as nullable any
Returns a date
value from the given value
. If the given value
is null
, Date.From
returns null
. If the given value
is date
, value
is returned. Values of the following types can be converted to a date
value:
If value
is of any other type, an error is returned.
Date
Convert 43910
to a date
value.
Date.From(43910)
Convert #datetime(1899, 12, 30, 06, 45, 12)
to a date
value.
Date.From(#datetime(1899, 12, 30, 06, 45, 12))