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

converting CVDate to NSDate #130

Closed
Sun-Sun opened this issue Oct 13, 2015 · 3 comments
Closed

converting CVDate to NSDate #130

Sun-Sun opened this issue Oct 13, 2015 · 3 comments

Comments

@Sun-Sun
Copy link

Sun-Sun commented Oct 13, 2015

Hello, firstly thank you for the wonderful library that you have created

I am having just one problem so far. I cannot retrieve the date in the certain format that I would like as the function to change the date is private so I cannot access it by extending CVDate. As well as that, I cannot convert CVDate to NSDate for my own convenience. I would really like to be able to change the date that I retrieve to yyyy-MM-dd to be able to send this to a database

Currently you only have 2 methods of retrieving the date and they both return custom inconvertible dates
calendarView.presentedDate.commonDescription
calendarView.presentedDate.globalDescription

@javierdac
Copy link

you can use this function to have your date in NSDate:

self.calendarView.presentedDate.convertedDate()!

Best!

@Sun-Sun
Copy link
Author

Sun-Sun commented Oct 19, 2015

Thank you very much

I have not tested it yet but will get back to you if anything goes wrong

Regards
Sun Sun

On Wed, Oct 14, 2015 at 10:41 PM, Javier notifications@github.com wrote:

you can use this function to have your date in NSDate:

self.calendarView.presentedDate.convertedDate()!

Best!


Reply to this email directly or view it on GitHub
#130 (comment)
.

@break2k
Copy link

break2k commented Dec 1, 2015

you can close that. Works good for me

@Sun-Sun Sun-Sun closed this as completed Dec 1, 2015
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

3 participants