[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Try to convert a string with a date indication to a TDateTime value
Source position: datih.inc line 125
function TryStrToDate( |
const S: String; |
out Value: TDateTime |
):Boolean; |
TryStrToDatetries to convert the string Sto a TDateTimedate value, and stores the date in Value. The Date must consist of 1 to three digits, separated by the DateSeparatorcharacter. If two numbers are given, they are supposed to form the day and month of the current year. If only one number is given, it is supposed to represent the day of the current month. (This is notsupported in Delphi)
The order of the digits (y/m/d, m/d/y, d/m/y) is determined from the ShortDateFormatvariable.
The function returns Trueif the string contained a valid date indication, Falseotherwise.
|
Convert a date string to a TDateTimevalue. |
|
|
Convert a time string to a TDateTimevalue. |
|
|
Try to convert a string with a time indication to a TDateTime value |
|
|
Try to convert a string with date/time indication to a TDateTime value |
|
|
Converts a TDateTimevalue to a date string with a predefined format. |
|
|
Convert a TDateTimetime to a string using a predefined format. |