Return a Date from a string expression.
Syntax
DateValue (StringExpression)
Key
StringExpression Any expression recognised by IsDate
dtmDemo=DateValue("28-Feb-10") WScript.Echo dtmDemo
PowerShell equivalent, “cast” a value as a date-time.:
$result = [datetime] "2024-12-31"
“What is freedom of expression? Without the freedom to offend, it ceases to exist” ~ Salman Rushdie
Date - The current system date.
DateAdd - Add a time interval to a Date.
DateDiff - Return the time interval between two dates.
DatePart - Return a unit of time from a date.
DateSerial - Return a Date from a numeric Year, Month and Day.
Standard date and time notation - YYYY-MM-DD
Equivalent PowerShell cmdlet: $CastAsDate = [datetime] "2014-12-01"