Syntax 3: For combining numbers into a date
Description
Combines numbers representing the year, month, and day into a date
value.
Syntax
|
1 |
Date ( year, month, day ) |
|
Argument |
Description |
|---|---|
|
year |
The 4-digit year (1 to 9999) of the date |
|
month |
The 1- or 2-digit integer for the month (1 to 12) of the |
|
day |
The 1- or 2-digit integer for the day (1 to 31) of the |
Return value
Date.
Returns the date specified by the integers for year, month, and
day as a date datatype. If any value is invalid (out of the range of
values for dates), Date returns 1900-01-01. If any argument’s value is
null, Date returns null.
Examples
These statements use integer values to set ld_my_date to
2005-10-15:
|
1 2 |
date ld_my_date ld_my_date = Date(2005, 10, 15) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest