Difference between revisions of "DateTime toInvariant"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{HelpFiles}}
 
{{HelpFiles}}
  
=== DateTime_toInvariant<br/> ===
+
==== convertToString ====
  
Convert datetime array to string.
+
Converts the value of an expression to a string value.
  
=== Syntax<br/> ===
+
'''Syntax'''
  
DateTime_toInvariant(date)
+
convertToString(expression)
  
=== Arguments ===
+
'''Arguments'''
  
date: Is array which is datetime to be convert
+
''expression'': Is an expression of the type bool, string or number.
  
=== Return type ===
+
'''Return type'''
  
string datetime format is yyyy-MM-dd hh:mm:ss
+
string
  
=== Examples ===
+
'''Examples'''
  
<source lang="javascript">
+
''string b = convertToString(23);''
array date = getDateTime();
 
string dt = DateTime_toInvariant(date);
 
print(dt);
 
//2015-11-16 01:25:48
 
 
</source>
 
  
__NOTOC__
+
''print("I'm " + b + " years old.");''
 +
 
 +
''//I'm 23 years old.''
 +
 
 +
'''Availability'''
 +
 
 +
Version 4.8 __NOTOC__
 +
<!-- imported from file: 394.htm-->

Revision as of 03:59, 16 November 2015


convertToString

Converts the value of an expression to a string value.

Syntax

convertToString(expression)

Arguments

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

Return type

string

Examples

string b = convertToString(23);

print("I'm " + b + " years old.");

//I'm 23 years old.

Availability

Version 4.8