In objective-c, the following code results in the UTC date time information using the date API.
date
NSDate *currentUTCDate = [NSDate date] >
NSDate *currentUTCDate = [NSDate date]
At the moment (with the latest changes to Swift), NSDate.date() is not longer available.
NSDate.date()
Instead you just need to initialize NSDate and it gets the current date and time. To try it, in a playground:
NSDate
var d = NSDate() d
and you will get:
Oct 22, 2014, 12:20 PM"