Monday, May 23, 2011

NSDate date example objc

You can get the date of today by calling NSDate date method. The returned date object is immutable. You can not change the value. It's a Floating Point number where 0 represents GMT 2001/01/01. Positive number means dates after GMT 2001/01/01 and minus number means before GMT 2001/01/01. [NSDate date example]

Example - [NSDate date]
    NSDate              *today = [NSDate date];