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

Are dates only returned as strings when not in modal mode? #59

Closed
promethyttrium opened this issue Sep 18, 2017 · 3 comments
Closed

Are dates only returned as strings when not in modal mode? #59

promethyttrium opened this issue Sep 18, 2017 · 3 comments

Comments

@promethyttrium
Copy link

It would seem the demo code showing the selected dates via [(ngModel)] are always returned as strings given the format attribute. Is it possible to return the dates as their original Date() type?

@hsuanxyz
Copy link
Owner

Not supported now, thanks for feedback.

@hsuanxyz
Copy link
Owner

@promethyttrium

npm install [email protected] --save
<ion-calendar [(ngModel)]="date"
              type="js-date">
 </ion-calendar>

All type: 'string' | 'js-date' | 'moment' | 'time' | 'object'

@promethyttrium
Copy link
Author

Thanks for the quick turnaround!! Can't wait to try it out!

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

No branches or pull requests

2 participants