Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Date displays should be independant of actual dates #29

Open
kalepail opened this issue Sep 4, 2015 · 2 comments
Open

Date displays should be independant of actual dates #29

kalepail opened this issue Sep 4, 2015 · 2 comments
Assignees

Comments

@kalepail
Copy link
Contributor

kalepail commented Sep 4, 2015

i.e. If you format the input dates to just show months (not sure why you'd want to do that but still) the switcher buttons will show "Invalid Date" because they look at the html of the inputs when they really should be looking at actual date objects or strings independant of what's being displayed to the end user.

@SleeplessByte
Copy link
Contributor

Yeah, you might want to either store it internally, or use data objects just like the month and year storage.

On my own version I store all the dates as .data( 'unix', somemomentobject.unix() ) and parse it back in with moment( ...data('unix' ) )

@kalepail
Copy link
Contributor Author

kalepail commented Sep 4, 2015

Mhm. A project for another day but it's definitely something that needs doing.

@kalepail kalepail self-assigned this Jan 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants