|
Description Syntax Return
Datatype Example Migration
DateSerial Function - Visual Basic
6.0 (VB 6.0) |
Returns a Variant (Date) for a specified year, month,
and day. |
|
Syntax: |
DateSerial(year, month, day)
Parameter |
Description |
year |
Required; Integer. Number between 100 and 9999, inclusive,
or a numeric expression. |
month |
Required; Integer. Any numeric expression. |
day |
Required; Integer. Any numeric expression. |
|
Return Data type: |
|
Date |
Example: |
DateSerial Returns Results in System's
Short Date Format.
Current System's Short Date Format: dd/MM/yyyy.
Current System Date and Time is:
Statement |
Result |
Remark |
DateSerial(1977, 5, 14) |
14/05/1977 |
|
|
DateSerial(1977 - 10, 5 - 2, 1 - 1) |
28/02/1967 |
|
|
DateSerial(1967, 2, 31) |
03/03/1967 |
Auto Correct Invalid Date |
 |
|
|
Migration from Visual Basic 6.0 (VB 6.0) to |
|
DateSerial Function in VB Script (VBS) |
|
DateSerial Function in JScript (JS) |
|
DateSerial Function in ASP (Active Server Page) |
|
DateSerial Function in PHP Script |
|
DateSerial Function in MS-Access |
|
DateSerial Function in MS SQL Server |
|
DateSerial Function in Oracle |
|
DateSerial Function in C Language |
|
DateSerial Function in C++ Language |
|
DateSerial Function in Foxpro |
|
DateSerial Function in Fortran |
|
DateSerial Function in MS Excel Sheet |
 |
|
|
|
|