SetCentury Function | |
Return and optionally change the setting that determines whether to include or omit century digits in the date format.
Namespace:
XSharp.Core
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax FUNCTION SetCentury() AS LOGIC
public static bool SetCentury()
Request Example
View SourceReturn Value
Type:
Logic
If
lNewSetting is not specified, SetCentury() returns the current setting.
If
lNewSetting is specified, the previous setting is returned.
Remarks
SetCentury() modifies the current date format as set by SetDateFormat(). Note that only the display and input format of dates is affected; date calculations maintain the century information regardless of the date format.
Examples
This example shows the results of a simple SetCentury function:
1SetCentury(FALSE)
2? TODAY()
3SetCentury(TRUE)
4? TODAY()
See Also