DateTime Function (Long, Long, Long) | |
Returns the current date and time as a DateTime value, or creates a year 2000-compliant DateTime value.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION DateTime(
nYear AS LONG,
nMonth AS LONG,
nDay AS LONG
) AS DateTime
public static DateTime DateTime(
int nYear,
int nMonth,
int nDay
)
Request Example
View SourceParameters
- nYear
- Type: Long
Specifies the year in the DateTime value. nYear can be a value from 100 to 9999.
- nMonth
- Type: Long
Specifies the month in the DateTime value. nMonth can be a value from 1 to 12.
- nDay
- Type: Long
Specifies the day in the DateTime value. nDay can be a value from 1 to 31.
Return Value
Type:
DateTimeSee Also