Coder Social home page Coder Social logo

Comments (6)

katemihalikova avatar katemihalikova commented on July 29, 2024 4
$scope.modelValue.toISOString().replace("T", " ").replace(/\.[0-9]{3}Z$/, "");

from ion-datetime-picker.

katemihalikova avatar katemihalikova commented on July 29, 2024

Use $scope.modelValue.toISOString() or similar.

from ion-datetime-picker.

MessaoudMohamed avatar MessaoudMohamed commented on July 29, 2024

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.

katemihalikova avatar katemihalikova commented on July 29, 2024

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.

MessaoudMohamed avatar MessaoudMohamed commented on July 29, 2024

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.

MessaoudMohamed avatar MessaoudMohamed commented on July 29, 2024

Thank you very much

from ion-datetime-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.