DateTime.Date

About

Returns a date part from a DateTime value

Syntax

DateTime.Date(dateTime as datetime) as nullable datetime  

Arguments

Argument Description
dateTime The DateTime to parse.

Example

DateTime.Date(#datetime(2010, 5, 4, 6, 5, 4)) equals #date(2010, 5, 4)