Skip to main content

cxDateUtils Unit

Implements utility methods and related types for date/time value management.

Records

Name Description
TcxDSTInfo Contains information about the daylight saving time transition.
TcxTimeZoneInformation
TcxTZIField Contains the date information specific to the current time zone.

Enums

Name Description
TcxDateEditSmartInput Enumerates built-in smart input constants.
TcxDateElement
TcxFirstWeekOfYear Enumerates the available options that specify which week should be considered the first week of a year.
TDay

Methods

Name Description
CheckDay(Integer,Integer,Integer) Returns the valid day for a specific date.
cxGetDateFormat(TDateTime,string,Integer,string) Converts the ADate date into a date string.
DateTimeToText(TDateTime,Boolean) Converts a TDateTime value to a human readable string.
DateTimeToTextEx(TDateTime,Boolean,Boolean,Boolean) Converts a TDateTime value to a string.
DateToLongDateStr(TDateTime)
DaysPerMonth(Integer,Integer) Returns the number of days in a month.
dxChangeMonth(Word,Word,Integer) Changes the date by a specified number of months.
dxDateOf(TDateTime)
dxDecMonth(Word,Word) Decreases the specified date by one month.
dxGetDateElement(TDateTime,TcxDateElement) Extracts the day, month or year form the TDateTime type.
dxGetWeekNumber(TDateTime,TDay,TcxFirstWeekOfYear) Returns the week number in a year.
dxIncMonth(Word,Word) Increases the specified date by one month.
dxTimeOf(TDateTime)
IsLeapYear(Integer) Determines whether the specified year is a leap year.
SmartTextToDate(string,TDateTime) Converts a string to the TDateTime type format.
TextToDateEx(string,TDateTime,string) Converts a string to the TDateTime type.

Variables

Name Description
scxDateEditSmartInput Stores built-in smart input constants.

Constants

Name Description
NullDate Specifies the value for a date determined as not set.
SmartTextToDateFunc Specifies the function handle for the SmartTextToDate function.

Types

Name
TDays