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
Nguyenduyan (talk | contribs)
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:General_Functions]]
{{HelpFiles}}
{{HelpFiles}}


==== convertToString ====
=== DateTime_toInvariant<br/> ===


Converts the value of an expression to a string value.
Convert datetime array to string.


'''Syntax'''
The function can accept empty and then returns empty 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> __NOTOC__
<!-- imported from file: 394.htm-->

Latest revision as of 07:25, 16 October 2017


DateTime_toInvariant

Convert datetime array to string.

The function can accept empty and then returns empty 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