Top "Nsdateformatter" questions

Class that creates string representations of NSDate (and NSCalendarDate) objects, and convert textual representations of dates and times into NSDate objects.

Formatting NSDate into particular styles for both year, month, day, and hour, minute, seconds

I basically need to get current date and time separately, formatted as: 2009-04-26 11:06:54 The code below, from another question …

cocoa cocoa-touch nsdate nsdateformatter date-formatting
Date Format in Swift

How will I convert this datetime from the date? From this: 2016-02-29 12:24:26 to: Feb 29, 2016 So far, this is my …

ios swift nsdate nsdateformatter
Convert string to date in Swift

How can I convert this string "2016-04-14T10:44:00+0000" into an NSDate and keep only the year, month, day, hour? …

swift nsdate nsdateformatter
Get current NSDate in timestamp format

I have a basic method which gets the current time and sets it in a string. However, how can I …

cocoa cocoa-touch nsdate nsdateformatter unix-timestamp
Swift - iOS - Dates and times in different format

I am working for an application written in swift and i want to manipulate dates and times let timestamp = NSDateFormatter.…

ios swift timestamp nsdateformatter
How to convert string to date to string in Swift iOS?

Am learning swift and am struck in converting the date String to NSDate to string. Am getting the date string …

ios string swift nsdate nsdateformatter
Convert NSDate to String in iOS Swift

I am trying to convert a NSDate to a String and then Change Format. But when I pass NSDate to …

ios swift swift3 nsdateformatter
Xcode swift am/pm time to 24 hour format

I am trying to convert a am/pm format time to a 24 hour format time 6:35 PM to 18:35 I tried this …

swift time nsdateformatter
Objective-C, How can I get the current date in UTC timezone?

I am trying: NSDate *currentDateInLocal = [NSDate date]; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy-MM-dd'T'HH:mm:SS.SSS'Z'"]; NSString *currentLocalDateAsStr = […

ios objective-c nsdate nsdateformatter
How to get the time in am/pm format iphone NSDateFormatter?

Am working in an iPhone app with using the NSDateFormatter. Am getting the time from the webservice like "00:00:00", "16:00:00","15:30:00" and so …

iphone ios time nsdateformatter