From Clomosy Docs

No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 6: Line 6:


<b>Example</b><br>
<b>Example</b><br>
<b>TRObject Syntax</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>
<b>Base Syntax</b><br>
<pre>
var
  myDate : TclDateTime;
begin
  myDate := StrToDateTime(Now);
  ShowMessage('Middle of a day = '+DateTimeToStr(myDate));
end;
</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

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:

See Also