date.Format(datetime : str, format : str) : str
Formats a date according to the specified format string. See .Net documentation for formatting date-time for more information on format strings.
1.8.1 or later; 8.08 or later for ISO week-date formats.
| Name | Type | Description | |||||||||||||||||||||
| datetime | str | The date to format. | |||||||||||||||||||||
| format | str | The format string. Additional ISO 8601 week-date formats available:
|
Date formatted according to the format string.
| Output | ||
| Saturday, May 18, 2013 9:37:53 PM | |
| 01-01-00
| |
| 18-05-2013 |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by
Example:
let now1 = date.changetimezone( date.new(2010, 7, 7, 0, 0, 0), "+3:00" );
<br/> now1;
<br/> date.format(now1,"dd/MM/yy");
It is giving me:
Wed, 07 Jul 2010 00:00:00 +03:00
06/07/10
Which value to believe in?