On 14 Apr., 19:15, dhtml <dhtmlkitc...@gmail.com> wrote:
> > problem is that that Dreamweaver method is using document.write which
> > can cause a problem depending on where the function is being called
> > and which is usually avoided in jQuery land.
>
> Calling document.write in a jQuery ready callback won't work
> consistently.

Didn't I say just that?


> If you want to format a local date, what is wrong with just having:-
>
> var todayEl = document.getElementById("today");
> todayEl.innerHTML = formatDate(new Date);

I believe the question was not about how to properly localize a date.


--Klaus

Reply via email to