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 to create event with NSDate #29
Comments
If your key for eventsByDate used a date format like "dd/MM/yyyy HH:mm" it's normal because this format contains the hours so you don't have the events sort by date but also by hours. It works in the Example, you don't need to change the format of the date, it's only used for get back your events and nothing else. |
Ok i have change code in this:
NSLog(@"Converted String : %@",convertedString); 2014-12-09 14:31:21.104 Database Demo[3017:106606] Converted String : 09-12-2014 But the result is not changed,it creates only the last one that I've insert in the dateSelected. |
It's because you don't understand what you're doing. Each time you call |
Ok i have insert a loop.This is a code:
What am I doing wrong? |
Like i said, you don't understand what you do, with this code you will only have |
Sorry but on stackOverflow they don't know your calendar.
} I need to replace your RandomDate with my dates that are contained in NSDate. |
Sorry but like i said it doesn't depend of my calendar, it's not related. |
I've checked out how to do this! |
Hi developer;
I'm a developer as well, and I'm trying to implement inside JTCalendar some event taken from NsDate*dateSelected
In it I've some date in "dd/MM/yyyy HH:mm":
NSLog(@"%@",dateselected)
"2014-12-09 00:05:41.908 Database Demo[1348:31927] 2014-12-09 09:39:37 +0000
2014-12-09 00:05:41.911 Database Demo[1348:31927] 2014-12-14 09:32:26 +0000
2014-12-09 00:05:41.913 Database Demo[1348:31927] 2014-12-20 08:08:09 +0000"
When I try to implement the date of "dateSelected" in the eventsByDate[key], it makes just one event (the last one that I've insert in the dateSelected).
Here the code:
(void)createEvents
{
eventsByDate = [NSMutableDictionary new];
}
Can you help me ???
Have a nice day......;)
The text was updated successfully, but these errors were encountered: