You might want to take a look at http://momentjs.com/ for Date handling. Turned out to be really useful in a couple of projects so far.
-- *Juri Strumpflohner* juristr.com On Fri, Jul 25, 2014 at 9:53 AM, ganaraj P R <[email protected]> wrote: > Make note that toISOString is not supported in all browser ( especially > the older IE's ). > > > On Fri, Jul 25, 2014 at 7:41 AM, Sander Elias <[email protected]> > wrote: > >> Hi Tarcisio, >> >> Not really an angular issue, just plain old JS.;) Angular is server >> agnostic, so it does not know anything about your backend, and how it >> want’s to receive its dates. >> new Date().toISOString() should do the trick. >> >> Regards >> Sander >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "AngularJS" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Regards, > Ganaraj P R > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/BfTNwVHB7HI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
