DateSerial

From NSB App Studio
Revision as of 11:38, 6 November 2012 by Ghenne (talk | contribs) (Ghenne moved page Dateserial to DateSerial)
Jump to navigation Jump to search

DateSerial(year, month, day)

Description

DateSerial returns a date constructed from a given year, month, and day. The required parameter, year, is any numeric expression ranging from 100 to 9999. The required parameters, month and day, can be any numeric expression.

Example

Rem DateSerial Example
'DateSerial builds a date from its parts
Dim IndepDay, Birthday
IndepDay = DateSerial(1776, 7, 4)
Birthday = DateSerial(1970, 12, 27)
Print "Independence Day:", IndepDay
Print "My birthday:", Birthday

Output

Independence Day:    7/4/1776
My birthday:  12/27/1970
(''sample date output is machine dependant'')

Related Items

TimeSerial