angular-bootstrap-persian-datepicker | A clean , flexible , and fully customizable persian date | Calendar library
kandi X-RAY | angular-bootstrap-persian-datepicker Summary
kandi X-RAY | angular-bootstrap-persian-datepicker Summary
A clean, flexible, and fully customizable persian date picker. User can navigate through months and years. The datepicker shows dates that come from other than the main month being displayed. These other dates are also selectable. Everything is formatted using the [persian date filter] and thus is also localized. [Demo] # Datepicker Settings #. All settings can be provided as attributes in the persian-datepicker or globally configured through the datepickerConfig.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of angular-bootstrap-persian-datepicker
angular-bootstrap-persian-datepicker Key Features
angular-bootstrap-persian-datepicker Examples and Code Snippets
Community Discussions
Trending Discussions on angular-bootstrap-persian-datepicker
QUESTION
I am using a persian-datepicker in my project, when I pick a date by this component the value stored in modelValue
is something like this: Mon Apr 10 2017 00:00:00 GMT+0430 (Iran Daylight Time)
, but when I send this value to server using $http.post
, this value gets transformed to this: 2017-04-09T19:30:00.000Z
and server side code interpret this value as yesterday, does any one know what should I do in this situation? I am pretty confused by this behavior.
ANSWER
Answered 2017-Apr-10 at 11:41I haven't used persian-datepicker
before, but I faced this issue on angular-ui-bootstrap datepicker
which I assume is related. angular-ui-bootstrap datepicker
uses the JavaScript Date object to calculate the dates hence it serializes to a UTC datetime string.
In the native angular-ui-bootstrap datepicker
you can do:
QUESTION
ANSWER
Answered 2017-Apr-06 at 04:44I asked the owner of the project and he told me to use min-date
on directive instead of options.
Here is working plunk
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-bootstrap-persian-datepicker
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page