Comments (6)
$scope.modelValue.toISOString().replace("T", " ").replace(/\.[0-9]{3}Z$/, "");
from ion-datetime-picker.
Use $scope.modelValue.toISOString()
or similar.
from ion-datetime-picker.
can not read the property .toISOString()
and when and without it i have this error
POST http:////Insta/createEvent/12:6/dddd/ddd/Wed%20Apr%2013%202016%2010:34:00%20GMT+0100%20(Paris,%20Madrid) 500 (Internal Server Error)
the problem that he should pass 20/04/2016 .........
from ion-datetime-picker.
Seems like your problem lies in your app, not in this component.
$scope.modelValue = new Date();
// modifying with the picker
$scope.modelValue instanceof Date === true
"http://Insta/createEvent/12:6/dddd/ddd/" + $scope.modelValue === "http://Insta/createEvent/12:6/dddd/ddd/Wed Apr 13 2016 10:34:00 GMT+0100 (Paris, Madrid)"
"http://Insta/createEvent/12:6/dddd/ddd/" + $scope.modelValue.toISOString() === "http://Insta/createEvent/12:6/dddd/ddd/2016-04-13T09:34:00.000Z"
Modify it to fit your needs. Sorry for the lack of more help, but this issue is not a place for learning you the basics of javascript.
from ion-datetime-picker.
POST http://Insta/createEvent/12:6/ddd/dddd/2016-04-08**T**09:56:41*_.138Z *_
how can i take of .138Z and change T with a space thankyou for your help
from ion-datetime-picker.
Thank you very much
from ion-datetime-picker.
Related Issues (20)
- Not getting value in controller HOT 7
- Datetime output HOT 1
- Disable Time inputs HOT 1
- How Can I clear Hours and Minute boxes on tap to manually enter time?
- Please example how to use between HOT 1
- Ionic 3 Time Bug (minute == 0) HOT 7
- How to open the date picker at a particular time instead of current time? HOT 1
- There will be an exception in Chinese data-title
- Condition on Date Pickup
- Date and time picker onchange HOT 1
- Ionic 3 : Error : this.input.isFocus is not a function at DatetimePickerDirective.open HOT 1
- problem about reloading the datetime picker HOT 3
- get only time from ion-datetime-picker HOT 2
- "only-valid" is not working in ionic 3 HOT 4
- Not getting Future Date
- All date of a month are shown only on wed
- how to disable weekends, holidays and specified dates at the same time HOT 1
- Date validation not working on version 0.5.2
- Date Picker language change is not detecting automatically
- How to set custom Timezone?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ion-datetime-picker.