Difference between revisions of "DateTime toInvariant"

From Catglobe Wiki
Jump to: navigation, search
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 03: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