Difference between revisions of "DateTime toInvariant"

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