Date is one of the 5 native subtypes of objects in JS... but it's not totally intuitive for those of us wanting to do simple date related functions. It would be nice if someone wrote a nice clean high level wrapper around the Date object.
Here's a good reference that has helped me before: http://www.javascriptkata.com/2007/04/27/mastering-of-the-date-object-in-javascript/ On 6/4/07, Alex Duffield <[EMAIL PROTECTED]> wrote: > > > Sorry, I know this is not prototype related, but I was wondering if > any one know of any libraries for dealing with date strings in JS. > > I am looking for something that does the equivalent to phps date() > function.. > > I found a couple > http://www.svendtofte.com/code/date_format/ > > http://www.mattkruse.com/javascript/date/source.html > > But both are buggy and produce unreliable results.. > > I think I might have to resort to doing this server side via ajax and > PHP ... Seems odd that JS has such bad support for dealing with > dates.. And odder still that no one has developed a solutions for it.. > > Cheers. > ______________________________________________________________________ > Alex Duffield > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
