I get the date back from the rails, which looks like this: "2010-10-29T00: 00: 00 + 00: 00"
And I would like to convert the javascript date created by 'new Date ()' to this format. Is there an easy way?
You are looking for the ISO 8601 format.
I always liked Date.js Library for any date processing / formatting in JS.
you can use toISOString () method to get this format
using dateformat you can format the date however you want
TRY THESE
http://blog.stevenlevithan.com/archives/date-time-format
http://jacwright.com/projects/javascript/date_format
http://www.mattkruse.com/javascript/date/
, ISO8601. google dansnetwork.com, , ISO8601 Date. ( String.split() Date api.). , , -, Mozilla Javascript 1.8.5 ISO8601 parse(). , .
Date
parse()
Source: https://habr.com/ru/post/1770792/More articles:SQL CLR DDL trigger written in C # - sql-serverWhat is an efficient algorithm for retrieving bags from pairs lists? - performanceUndefined enumeration reference - c ++How to submit a form in a child HTML window, then call the Javascript function in the parent window, and then close the child window - javascriptMicrosoft.Office.Interop.Excel with "bad value" as default parameters - c #How can I store an RPG program in memory? - ibm-midrangeCapturing a MemoryError in Python? - pythonSQL Server: need to add primary key - sqlProblem with data binding in C # - c #Visual Studio Debugger - визуализация Intel Quadruple precision (_Quad) - c++All Articles