From the following forum thread (http://forums.developer.mindtouch.co...8372#post18372). The attached zip file contains the diff and modified DekiScriptLibrary.cs (based off 8.05.2b source).
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 | ||
| Thursday, January 08, 2009 12:29:04 PM | |
| 01-01-00
|
date.ISOWeek(datetime : str) : map
Takes a standard date string and returns the numeric values of an ISO 8601 week-date as a map.
8.08 or later
| Name | Type | Description | ||||||||||||
| datetime | str | The standard format date to translate. | ||||||||||||
| map | enum | Selected portion of an ISO week-date.
|
Numeric value of the year, week, or day of a standard date in ISO 8601 week-date form. All values are returned in map format and can be accessed by name.
| Output | ||
| { day : 4, week : 2, year : 2009 } |
date.ParseISOWeek(isoweekdate : str) : str
Takes a full ISO 8601 week-date (yyyy-Www-d) and translates it back to a standard date string.
8.08 or later
| Name | Type | Description |
| isoweekdate | str | The ISO 8601 format week-date to translate. |
A standard date in short format.
| Output | ||
| 1/1/2000 | |
| Sat, 01 Jan 2000 |
| File | Size | Date | Attached by | |||
|---|---|---|---|---|---|---|
| date_isoweek.zip ISO Week Files | 18.56 kB | 22:15, 12 Aug 2008 | anbrcyp | Actions | ||