- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
in many applications can not save data containing dates or times, in my view the directive shows me a good date format, but when saving the data format changed for another.
json ng-model Actividad: {"Nombre":act1,"Fecha":"2015-03-03T03:00:00.000Z","Hora":"1970-01-01T03:00:00.000Z","observacion":"obs"}
<input type="text" ng-model="Actividad.Nombre" placeholder="Nombre de actividad">
<input ng-model="Actividad.Fecha" type="date" >
<input ng-model="Actividad.Hora" type="time" >
<textarea ng-model="Actividad.observacion" placeholder="Observación"></textarea>
<ons-button modifier="large" ng-click="addTodo(Actividad)" ></ons-button>
from my debugger I can visualize this
Actividad: Object
Fecha: Tue Mar 03 2015 00:00:00 GMT-0300 (Hora estándar de Argentina)
__proto__: Invalid Date
Hora: Thu Jan 01 1970 00:00:00 GMT-0300 (Hora estándar de Argentina)
__proto__: Invalid Date
Nombre: "act1"
observacion: "obs"
- Tags:
- HTML5
- Intel® XDK
Link Copied

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page