DateValue

Return a Date from a string expression.

Syntax 
      DateValue (StringExpression)

Key
    StringExpression  Any expression recognised by IsDate

Example

dtmDemo=DateValue("28-Feb-10")
WScript.Echo dtmDemo

“What is freedom of expression? Without the freedom to offend, it ceases to exist” - Salman Rushdie

Related:

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
Equivalent Powershell command: $CastAsDate = [datetime] "12/1/2010"



Back to the Top

© Copyright SS64.com 1999-2012
Some rights reserved