From Clomosy Docs
No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 6: | Line 6: | ||
<b>Example</b><br> | <b>Example</b><br> | ||
<pre> | <pre> | ||
var | var | ||
| Line 15: | Line 15: | ||
ShowMessage('Middle of a day = '+DateTimeToStr(myDate)); | ShowMessage('Middle of a day = '+DateTimeToStr(myDate)); | ||
} | } | ||
</pre> | </pre> | ||
| Line 34: | Line 24: | ||
<h2> See Also </h2> | <h2> See Also </h2> | ||
* [[System_Library#Type_Conversion_Functions | Type Conversion Functions]] | * [[System_Library#Type_Conversion_Functions | Type Conversion Functions]] | ||
{{#seo:|title=DateTimeToStr Using in Clomosy - Clomosy Docs}} | |||
{{#seo:|description=DateTimeToStr converts a TclDateTime value to a string, formatted according to local date and time settings.}} | |||
Latest revision as of 13:52, 24 December 2024
function DateTimeToStr(const DateTime: TclDateTime):string;
Converts a TclDateTime value to a string, using the local settings for displaying date and time.
Example
var
myDate : TclDateTime;
{
myDate = StrToDateTime(Now);
ShowMessage('Middle of a day = '+DateTimeToStr(myDate));
}
Output:
Middle of a day = 27.02.2023 14:59:01