Syntax 3 For combining numbers into a date
Description
Combines numbers representing the year, month, and day into
a date value.
Syntax
|
1 |
<span>Date </span>( <span>year</span>, <span>month</span>, <span>day</span> ) |
|
Argument |
Description |
|---|---|
|
year |
The 4-digit year (1 to 9999) of the date |
|
month |
The 1- or 2-digit integer for the month |
|
day |
The 1- or 2-digit integer for the day |
Return Values
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 |
date ld_my_date |
|
1 |
ld_my_date = <span>Date</span>(2005, 10, 15) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest