/ Published in: iPhone
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// get the current date [dateFormat setDateFormat:@"yyyy-MM-dd"]; // get the weekday of the current date NSInteger weekday = [components weekday]; // 1 = Sunday, 2 = Monday, etc.