New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Moment.js dependency #815
Labels
Milestone
Comments
This was referenced Oct 30, 2018
Closed
Do we have any updates on this? |
The readme says that moment is optional still we get warning during the build for moment not found. |
This get warning... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
moment
from UMD: https://github.com/Pikaday/Pikaday/blob/master/pikaday.js#L29hasMoment
flag and everyting that is releated to it: https://github.com/Pikaday/Pikaday/blob/master/pikaday.js#L36formatStrict
option: https://github.com/Pikaday/Pikaday/blob/master/pikaday.js#L215getMoment
method: https://github.com/Pikaday/Pikaday/blob/master/pikaday.js#L761setMoment
method: https://github.com/Pikaday/Pikaday/blob/master/pikaday.js#L787toString
method: https://github.com/Pikaday/Pikaday/blob/master/pikaday.js#L752parse
method: https://github.com/Pikaday/Pikaday/blob/master/pikaday.js#L553_parseFieldValue
method: https://github.com/Pikaday/Pikaday/blob/master/pikaday.js#L547moment
from the Readmemoment
example withparse
andtoString
functions: https://github.com/Pikaday/Pikaday/blob/master/examples/moment.htmlHow to update from 1.x to 2.x
getMoment
Use
getDate
.setMoment
Use
setDate
.toString
Define custom
toString
function in Pikaday options.parse
Define custom
parse
function in Pikaday options.formatStrict
See
parse
section above.Advanced Moment integration example
You can use moment js to localize Pikaday!
Source: #472 (comment)
The text was updated successfully, but these errors were encountered: