> I am assuming that TW being British would have the correct format and
> Dave Gifford being American may have changed it to their format.
The format for text value contained in document.lastModified is
determined by the browser, and generally defaults to a fixed date
format that can always be parsed, regardless of any localized date
format settings that may be in effect.
To re-format the date to suit your preferences, you can create a date
*object* from the browser-provided text and then invoke .formatString
(...) on that date object to generate new text with the desired
format... for example, something like this:
new Date(document.lastModified).formatString("DDD, MMM DDth YYYY 0hh:
0mm:0ss");
enjoy,
-e
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en
-~----------~----~----~----~------~----~------~--~---