RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils Namespace

This is namespace DateUtils.

Name 
Description 
The following table lists functions in this documentation. 
The following table lists variables in this documentation. 
The following table lists constants in this documentation. 
Name 
Description 
This is constant DateUtils.DayFriday. 
This is constant DateUtils.DayMonday. 
This is constant DateUtils.DaySaturday. 
This is constant DateUtils.DaysPerWeek. 
This is constant DateUtils.DaysPerYear. 
This is constant DateUtils.DaySunday. 
This is constant DateUtils.DayThursday. 
This is constant DateUtils.DayTuesday. 
This is constant DateUtils.DayWednesday. 
This is constant DateUtils.MonthsPerYear. 
Delphi inverse time unit constants. 
This is constant DateUtils.OneMillisecond. 
This is constant DateUtils.OneMinute. 
This is constant DateUtils.OneSecond. 
This is constant DateUtils.RecodeLeaveFieldAsIs. 
This is constant DateUtils.WeeksPerFortnight. 
This is constant DateUtils.YearsPerCentury. 
This is constant DateUtils.YearsPerDecade. 
This is constant DateUtils.YearsPerMillennium. 
 
Name 
Description 
 
Indicates the relationship between the date portions of two TDateTime values. 
 
Indicates the relationship between two TDateTime values. 
 
Indicates the relationship between the time portions of two TDateTime values. 
 
Strips the time portion from a TDateTime value. 
 
Converts a TDateTime value into a Julian date. 
 
Converts a TDateTime value into a modified Julian date. 
 
Converts a TDateTime value into a Unix/Linux-style date-and-time value. 
 
Returns the day of the month represented by a TDateTime value. 
 
Returns the day of the month represented by a TDateTime value. 
 
Returns the day of the week represented by a TDateTime value. 
 
Returns the number of days between a specified TDateTime value and December 31 of the previous year. 
 
Returns the number of whole days between two specified TDateTime values. 
 
Returns the number of days in a specified month of a specified year. 
 
Returns the number of days in a specified year. 
 
Returns the number of days in the month of a specified TDateTime value. 
 
Returns the number of days in the year of a specified TDateTime value. 
 
Returns the number of days (including fractional days) between two specified TDateTime values. 
 
Returns the year and day of the year for a specified TDateTime. 
 
Returns the year, month, week of the month, and day of the week for a specified TDateTime. 
 
Returns Year, Month, Day, Hour, Minute, Second, and Millisecond values for a TDateTime. 
 
Returns the year, week of the year, and day of the week for a specified TDateTime value object. 
 
For a given TDateTime value, returns the year, month, day of the week, and the count of that day of the week in the month. 
 
Returns a TDateTime that represents a specified day of the year for a specified year. 
 
Returns a TDateTime that represents a specified day of a specified week in a specified month and year. 
 
Returns a TDateTime that represents a specified year, month, day, hour, minute, second, and millisecond. 
 
Returns a TDateTime that represents a specified day of a specified week in a specified year. 
 
Returns a TDateTime that represents a specified occurrence of a day of the week within a specified month and year. 
 
Returns a TDateTime that represents the last millisecond of a specified day. 
 
Returns a TDateTime that represents the last millisecond of a specified day. 
 
Returns a TDateTime that represents the last millisecond of the last day of a specified month. 
 
Returns a TDateTime object value that represents the last millisecond of a specified day of a specified week. 
 
Returns a TDateTime that represents the last millisecond of a specified year. 
 
Returns a TDateTime that represents the last millisecond of the day identified by a specified TDateTime. 
 
Returns a TDateTime that represents the last millisecond of the last day of the month identified by a specified TDateTime. 
 
Returns a TDateTime that represents the last millisecond of the last day of the week identified by a specified TDateTime. 
 
Returns a TDateTime that represents the last millisecond of the last day of the year identified by a specified TDateTime. 
 
Returns the hour of the day represented by a TDateTime value. 
 
Returns the hour of the day represented by a TDateTime value. 
 
Returns the number of hours between a specified TDateTime value and 12:00 AM of the first day of the month. 
 
Returns the number of hours between a specified TDateTime value and 12:00 AM of the first day of the week. 
 
Returns the number of hours between a specified TDateTime value and 12:00 AM of the first day of the year. 
 
Returns the number of whole hours between two specified TDateTime values. 
 
Returns the number of Hours (including fractional Hours) between two specified TDateTime values. 
 
Returns a date shifted by a specified number of days. 
 
Returns a date/time value shifted by a specified number of hours. 
 
Returns a date/time value shifted by a specified number of milliseconds. 
 
Returns a date/time value shifted by a specified number of minutes. 
 
Returns a date/time value shifted by a specified number of seconds. 
 
Returns a date shifted by a specified number of weeks. 
 
Returns a date shifted by a specified number of years. 
 
This is function DateUtils.InvalidDateDayError. 
 
This is function DateUtils.InvalidDateMonthWeekError. 
 
This is function DateUtils.InvalidDateTimeError. 
 
This is function DateUtils.InvalidDateWeekError. 
 
This is function DateUtils.InvalidDayOfWeekInMonthError. 
 
Indicates whether a specified TDateTime value occurs in a leap year. 
 
IsPM 
Indicates whether the time portion of a specified TDateTime value occurs after noon. 
 
Indicates whether a specified TDateTime value occurs on a the same day as a criterion date. 
 
Indicates whether a specified TDateTime value occurs on the current date. 
 
Indicates whether a specified year, month, and day represent a valid date. 
 
Indicates whether a specified year and day of the year represent a valid date. 
 
Indicates whether a specified year, month, week of the month, and day of the week represent a valid date. 
 
Indicates whether a specified year, month, day, hour, minute, second, and millisecond represent a valid date and time. 
 
Indicates whether a specified year, week of the year, and day of the week represent a valid date. 
 
Indicates whether a specified hour, minute, second, and millisecond represent a valid date and time. 
 
Converts a Julian date to a TDateTime value. 
 
Returns the millisecond of the second represented by a TDateTime value. 
 
Returns the number of milliseconds between a specified TDateTime value and the beginning of the same day. 
 
Returns the number of milliseconds between a specified TDateTime value and the beginning of the same hour. 
 
Returns the number of milliseconds between a specified TDateTime value and the beginning of the same minute. 
 
Returns the number of milliseconds between a specified TDateTime value and the beginning of the month. 
 
Returns the millisecond of the second represented by a TDateTime value. 
 
Returns the number of milliseconds between a specified TDateTime value and 12:00:00:00 AM of the first day of the week. 
 
Returns the number of milliseconds between a specified TDateTime value and 12:00:00:00 AM of the first day of the year. 
 
Returns the number of milliseconds between two specified TDateTime values. 
 
Returns the number of milliseconds between two specified TDateTime values. 
 
Returns the minute of the hour represented by a TDateTime value. 
 
Returns the number of minutes between a specified TDateTime value and 12:00 AM of the same day. 
 
Returns the number of minutes between a specified TDateTime value and the beginning of the same hour. 
 
Returns the number of minutes between a specified TDateTime value and 12:00 AM of the first day of the month. 
 
Returns the number of minutes between a specified TDateTime value and 12:00 AM of the first day of the week. 
 
Returns the number of minutes between a specified TDateTime value and 12:00 AM of the first day of the year. 
 
Returns the number of minutes between two specified TDateTime values. 
 
Returns the number of minutes, including fractions thereof, between two specified TDateTime values. 
 
Converts a modified Julian date to a TDateTime value. 
 
Returns the month of the year represented by a TDateTime value. 
 
Returns the month of the year represented by a TDateTime value. 
 
Returns the approximate number of months between two specified TDateTime values. 
 
Returns the approximate number of months, including fractions, between two specified TDateTime values. 
 
Returns which occurrence of its weekday a specified TDateTime value represents. 
 
Replaces the date portion of a specified TDateTime value. 
 
Selectively replaces parts of a specified TDateTime value. 
 
Replaces the day of the month for a specified TDateTime value. 
 
Replaces the hour of the day for a specified TDateTime value. 
 
Replaces the millisecond of the second for a specified TDateTime value. 
 
Replaces the minute of the hour for a specified TDateTime value. 
 
Replaces the month of the year for a specified TDateTime value. 
 
Replaces the second of the minute for a specified TDateTime value. 
 
Replaces the time portion of a specified TDateTime value. 
 
Replaces the year for a specified TDateTime value. 
 
Indicates whether two TDateTime values represent the same year, month, and day. 
 
Indicates whether two TDateTime values represent the same year, month, day, hour, minute, second, and millisecond. 
 
Indicates whether two TDateTime values represent the same time of day, ignoring the date portion. 
 
Returns the second of the minute represented by a TDateTime value. 
 
Returns the number of seconds between a specified TDateTime value and 12:00:00 AM of the same day. 
 
Returns the number of seconds between a specified TDateTime value and the beginning of the same hour. 
 
Returns the number of seconds between a specified TDateTime value and the beginning of the same minute. 
 
Returns the number of seconds between a specified TDateTime value and 12:00:00 AM on the first day of the month. 
 
Returns the number of seconds between a specified TDateTime value and 12:00:00 AM of the first day of the week. 
 
Returns the number of seconds between a specified TDateTime value and 12:00:00 AM on the first day of the year. 
 
Returns the number of seconds between two specified TDateTime values. 
 
Returns the number of seconds (including fractions thereof) between two specified TDateTime values. 
 
Returns a TDateTime that represents 12:00:00:00 AM on a specified day. 
 
Returns a TDateTime that represents 12:00:00:00 AM on a specified day. 
 
Returns a TDateTime that represents 12:00:00:00 AM on the first day of a specified month. 
 
Returns a TDateTime that represents 1the first moment on a specified day of a specified week. 
 
Returns a TDateTime that represents the first moment on the first day of a specified year. 
 
Returns a TDateTime that represents 12:00:00:00 AM on the day identified by a specified TDateTime. 
 
Returns a TDateTime that represents 12:00:00:00 AM on the first day of the month identified by a specified TDateTime. 
 
Returns a TDateTime that represents 12:00:00:00 AM on the first day of the week identified by a specified TDateTime. 
 
Returns a TDateTime that represents 12:00:00:00 AM on the first day of the year identified by a specified TDateTime. 
 
Strips the date portion from a TDateTime value. 
 
Returns a TDateTime value that represents the current date. 
 
Returns a TDateTime value that represents the following day. 
 
Calculates the TDateTime value that represents a specified day of the year for a specified year. 
 
Calculates the TDateTime value that represents a specified day of a specified week in a specified month and year. 
 
Calculates the TDateTime value that represents a specified year, month, day, hour, minute, second, and millisecond. 
 
Calculates the TDateTime value that represents a specified day of a specified week in a specified year. 
 
Calculates a TDateTime that represents a specified occurrence of a day of the week within a specified month and year. 
 
Converts a Julian date to a TDateTime value. 
 
Converts a modified Julian date to a TDateTime value. 
 
Selectively replaces parts of a specified TDateTime value. 
 
Converts a Unix/Linux style date-and-time value to a TDateTime value. 
 
Returns the week of the year represented by a TDateTime value. 
 
Returns the week of the month represented by a TDateTime value. 
 
Returns the week of the month represented by a TDateTime value. 
 
Returns the week of the year represented by a TDateTime value. 
 
Returns the week of the year represented by a TDateTime value. 
 
Returns the number of whole weeks between two specified TDateTime values. 
 
Returns the number of weeks in a specified year. 
 
Returns the number of weeks in the year of a specified TDateTime value. 
 
Returns the number of weeks (including fractional weeks) between two specified TDateTime values. 
 
Indicates whether two dates are within a specified number of days of each other. 
 
Indicates whether two date/time values are within a specified number of hours of each other. 
 
Indicates whether two date/time values are within a specified number of milliseconds of each other. 
 
Indicates whether two date/time values are within a specified number of minutes of each other. 
 
Indicates whether two date/time values are within a specified number of months of each other. 
 
Indicates whether two date/time values are within a specified number of seconds of each other. 
 
Indicates whether two date/time values are within a specified number of weeks of each other. 
 
Indicates whether two date/time values are within a specified number of years of each other. 
 
Returns the year represented by a TDateTime value. 
 
Returns the approximate number of years between two specified TDateTime values. 
 
Returns the approximate number of years (including fractions thereof) between two specified TDateTime values. 
 
Returns a TDateTime value that represents the preceding day. 
Name 
Description 
This is variable DateUtils.ApproxDaysPerMonth. 
This is variable DateUtils.ApproxDaysPerYear. 
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!