ios7.1 - How to get the day name in ios -
i want name of day. example
if have day 01/08/2014
want find 1st day monday,tuesday.....or saturday likewise. how can in ios. please me
have @ nsdateformatter
:
nsdateformatter *dateformatter = [[nsdateformatter alloc] init]; [dateformatter setdateformat:@"eeee"]; nsstring *dayname = [dateformatter stringfromdate:yourdate];
more info within apples date formatting guide
Comments
Post a Comment