Re: Dates in HTML 5

On Jun 28, 2007, at 1:36 PM, Thomas Broyer wrote:

>
> 2007/6/27, Rob Marshall:
>>
>> I don't think it's safe to change document.lastModified, but I agree
>> it's a terrible format. If it's still useful, perhaps a new attribute
>> could be added that returns the last modified date as a DOMTimeStamp?
>
> On the other hand, Opera 9 does not follow the format described in  
> the spec.
>
> Opera 9 (9.21):
> document.lastModified
>    string
>    January 1, 1970 GMT
> toString
>    Thu, 28 Jun 2007 20:19:42 GMT+0200
> toUTCString
>    Thu, 28 Jun 2007 18:19:42 GMT
> toLocaleString
>    28/06/2007 20:19:42
>

To me the toLaocaleString should format the date in appropriate order  
for the locale settings.

Received on Thursday, 28 June 2007 18:56:56 UTC