Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

DateTime toInvariant: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
Line 1: Line 1:
{{HelpFiles}}
{{HelpFiles}} __NOTOC__


==== convertToString ====


Converts the value of an expression to a string value.
=== DateTime_toInvariant ===


'''Syntax'''
Convert datetime array to string.


convertToString(expression)
=== Syntax ===


'''Arguments'''
DateTime_toInvariant(date)


''expression'': Is an expression of the type bool, string or number.
=== Arguments ===


'''Return type'''
date: Is array which is datetime to be convert


string
=== Return type ===


'''Examples'''
string datetime format is yyyy-MM-dd hh:mm:ss


''string b = convertToString(23);''
=== Examples ===


''print("I'm " + b + " years old.");''
<source lang="javascript">
 
array date = getDateTime();
''//I'm 23 years old.''
string dt = DateTime_toInvariant(date);
 
print(dt);
'''Availability'''
//2015-11-16 01:25:48
 
Version 4.8 __NOTOC__
</source>
<!-- imported from file: 394.htm-->

Revision as of 02:01, 16 November 2015


DateTime_toInvariant

Convert datetime array to string.

Syntax

DateTime_toInvariant(date)

Arguments

date: Is array which is datetime to be convert

Return type

string datetime format is yyyy-MM-dd hh:mm:ss

Examples

 array date = getDateTime();
 string dt = DateTime_toInvariant(date);
 print(dt);
 //2015-11-16 01:25:48