[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Converts a TDateTimevalue to a date string with a predefined format.
Source position: datih.inc line 115
function DateToStr( |
Date: TDateTime |
):String; |
DateToStrconverts Dateto a string representation. It uses ShortDateFormatas it's formatting string. It is hence completely equivalent to a FormatDateTime('ddddd', Date).
None.
|
Convert a TDateTimetime to a string using a predefined format. |
|
|
Converts a TDateTimevalue to a string using a predefined format. |
|
|
Return a string representation of a TDateTimevalue with a given format. |
|
|
Convert a date string to a TDateTimevalue. |
Program Example7; { This program demonstrates the DateToStr function } Uses sysutils; Begin Writeln(Format ('Today is: %s',[DateToStr(Date)])); End.