![]() Writeln ( 'Now : ' ,FormatDateTime ( 'c' ,ThisMoment ) ) End. Writeln ( 'Now : ' ,FormatDateTime ( 'DD MM YYYY' ,ThisMoment ) ) Writeln ( 'Now : ' ,FormatDateTime ( 'hh:nn' ,ThisMoment ) ) ![]() See alsoĬonverts a TDateTime value to a string using a predefined format.Ĭonverts a TDateTime value to a date string with a predefined format.Ĭonvert a TDateTime time to a string using a predefined format.Ĭonvert a date/time string to a TDateTime value.Įxample Program Example14 Uses sysutils Var ThisMoment : TDateTime Begin On error (such as an invalid character in the formatting string), and EConvertError exception is raised. The complete list of formatting characters can be found in formatchars. Contents 1 Syntax 1.1 Integer formatting 1. ![]() For an in-depth explanation see the sysutils.format on line documentation. The format function is found in the unit SysUtils. ![]() DeclarationįormatDateTime formats the date and time encoded in DateTime according to the formatting given in FormatStr. The format function formats a series of values into a string. Return a string representation of a TDateTime value with a given format. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |