DateSerial

Return a Date from a numeric Year, Month and Day.

Syntax 
      DateSerial (Year, Month, Day)

Key
    Year  An integer from 100-9999 representing the year.

    Month An integer from 1-12 representing the month.

    Day   An integer from 1-31 representing the day.

These may also be variables or numeric expressions.

Example

dtmXMAS=DateSerial(2010,12,25)
WScript.Echo dtmXMAS

“I always play women I would date” ~ Angelina Jolie

Related:

Date - The current system 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: Get-Date -y 2015 -mo 12 -day 31


 
Copyright © SS64.com 1999-2019
Some rights reserved