Posts by José Silva • 1 point
2 posts
-
0
votes2
answers59
viewsA: Convert a date from C# (Datetime), which has been transformed JSON, to Javascript Date
To solve the problem, we will need to use a regex. The return of $.Ajax() or $.Post() will be in a variable as below. $.post("/Area/Controler/Ação", {parametros}, function (retorno) {…
-
-2
votes2
answers59
viewsQ: Convert a date from C# (Datetime), which has been transformed JSON, to Javascript Date
When I perform a data search in C#, it returns the DateTime in format "/Date(123456789)/", but I can’t convert to a valid Javascript date. As a: var data = new Date("/Date(123456789)/"); Or: var…