Skip to content
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

$.format.date("Wed Jan 29 2014 00:00:00 GMT+0530 (India Standard Time)", "yyyy-mm-dd") returns "2014-00-29" #60

Closed
ashok2ashok opened this issue Jan 31, 2014 · 2 comments

Comments

@ashok2ashok
Copy link

ashok2ashok commented Jan 31, 2014

$.format.date("Wed Jan 29 2014 00:00:00 GMT+0530 (India Standard Time)", "yyyy-mm-dd")
returns
"2014-00-29"

Supposed to return
"2014-01-29"

📌 #124

@sagrawal31
Copy link

Small m is always for minute, not for month. Kindly use capital M.

$.format.date("2014-01-29 00:00:00.0", "yyyy-MM-dd") 

@ashok2ashok
Copy link
Author

Hey Shashank, My Bad again. Checked the docs and was about to close this.

Thanks for the damn quick turnaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants