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 dayOfWeek: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg_pham (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:General_Functions]]
[[Category:General_Functions]]

{{HelpFiles}}
 


====DateTime_dayOfWeek====
====DateTime_dayOfWeek====

Revision as of 08:26, 12 December 2011




DateTime_dayOfWeek

Return day of week (Mon, Tue, Wed,...) of a datetime

Syntax

DateTime_dayOfWeek(datetime);

Arguments

  • datetime: is array in which we get dayOfWeek

Return value

number in which:

  • 0: DateTime_Sunday
  • 1: DateTime_Monday
  • 2: DateTime_Tuesday
  • 3: DateTime_Wednesday
  • 4: DateTime_Thursday
  • 5: DateTime_Friday
  • 6: DateTime_Saturday

Example

array a1 = {2009,5,23,10,0,0,0,19,57};

print(DateTime_dayOfWeek(a1));

// a1=6

Availability

Version 5.7