I am working on Application which has users in different countries. for example, India and US.
I want NSDate with out time in all case in any timezone.
For example, 2016-03-01 will be remain same in both timezones 2016-03-01 00:00:00 +0000.
I am using
NSDate* dateOnly = [[NSCalendar currentCalendar] dateBySettingHour:0 minute:0 second:0 ofDate:[NSDate date] options:NSCalendarMatchLast];
Still I am getting this: 2016-04-21 05:00:00 +0000
I need 2016-04-21 00:00:00 +0000
Please suggest proper solution. Thanks in advance.