Back to Devexpress

cxDateUtils Unit

vcl-cxdateutils.md

latest3.7 KB
Original Source

cxDateUtils Unit

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

Records

NameDescription
TcxDSTInfoContains information about the daylight saving time transition.
TcxTimeZoneInformation
TcxTZIFieldContains the date information specific to the current time zone.

Enums

NameDescription
TcxDateEditSmartInputEnumerates built-in smart input constants.
TcxDateElement
TcxFirstWeekOfYearEnumerates the available options that specify which week should be considered the first week of a year.
TDay

Methods

NameDescription
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

NameDescription
scxDateEditSmartInputStores built-in smart input constants.

Constants

NameDescription
NullDateSpecifies the value for a date determined as not set.
SmartTextToDateFuncSpecifies the function handle for the SmartTextToDate function.

Types

Name
TDays