-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
How can i get current time with selected date? #440
Comments
@adavan2107 I don’t quite get your point. |
@WenchaoD when selecting single date from calendar date and time i actually get was 06-10-2016 12:00 Am how can i get actual time instead of 12:00 pm Thanks, |
This repo only supports year、month and day unit. But you can change the hour/miniute/second to any value by this function of NSCalendar. - (nullable NSDate *)dateBySettingHour:(NSInteger)h minute:(NSInteger)m second:(NSInteger)s ofDate:(NSDate *)date options:(NSCalendarOptions)opts NS_AVAILABLE(10_9, 8_0); |
Thanks @WenchaoD you save my day.. |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i am stuck in getting current time with selected date please help
Thanks,
A.Adavan
The text was updated successfully, but these errors were encountered: