I am getting date from web service in 12 hour Format like this @”2012-11-23 04:46:19.120″. Is there any way to identify weather this time is AM or PM? Please guide me what should I do to get the correct result?
I am getting Dictionary in Response like this:
{
address = "22 W 46th St,\nNew York,New York,10036";
"business_name" = "Monster Sushi Midtown";
"con_res_id" = 5940;
"current_date" = "2012-11-23 04:46:19.120";
"deal_description" = "Enjoy Happy Hour with $3 Large Beers & $2 Regular Beers";
}
Thanks iosRider for your question and providing some informations.
The answer is NO.
If your database is not storing the AM / PM, cocoa cant convert it into AM or PM.
Now what you can do is :
Discard the timestamp from both the dates, store it in NSString and compare !!!