StackOverflow Questions for Tag: nsdatecomponents

Kashif Jilani
Kashif Jilani

Reputation: 1257

Find difference in two dates in iOS

Score: 6

Views: 5686

Answers: 4

Read More
TruMan1
TruMan1

Reputation: 36178

How to format a time interval with the new Foundation formatted method?

Score: 6

Views: 5176

Answers: 1

Read More
Evan Kaminsky
Evan Kaminsky

Reputation: 715

Swift DateComponentsFormatter drop leading zeroes but keep at least one digit in Minutes place

Score: 11

Views: 4778

Answers: 4

Read More
Sumit Patel
Sumit Patel

Reputation: 2587

Rounding of NSdate to nearest hour in iOS

Score: 8

Views: 9697

Answers: 7

Read More
ixany
ixany

Reputation: 6080

All dates between two Date objects (Swift)

Score: 50

Views: 34795

Answers: 8

Read More
Ric Santos
Ric Santos

Reputation: 16477

How to generate an ordered list of DateComponents.weekday values for the current locale

Score: 0

Views: 380

Answers: 3

Read More
NiravS
NiravS

Reputation: 1282

Swift 3.0 : Convert server UTC time to local time and vice-versa

Score: 72

Views: 113091

Answers: 8

Read More
Camsoft
Camsoft

Reputation: 12015

Adjusting Swift Date from one timezone to another is not producing expected result

Score: -1

Views: 1980

Answers: 3

Read More
RP89
RP89

Reputation: 121

Predicate for fetching the data for a particular year from Core Data in SwiftUI

Score: 1

Views: 363

Answers: 1

Read More
user1028028
user1028028

Reputation: 6433

NSDate beginning of day and end of day

Score: 131

Views: 76864

Answers: 25

Read More
Li Fumin
Li Fumin

Reputation: 1453

Initialising DateComponents with weekOfMonth returning wrong date

Score: 0

Views: 126

Answers: 1

Read More
laurie
laurie

Reputation: 1015

dateComponents() from... to in days shows from now to tomorrow as 0 days?

Score: 2

Views: 1147

Answers: 1

Read More
Kunal Shah
Kunal Shah

Reputation: 1121

calendar.dateComponents returning negative value even though resultDate is after startDate

Score: 0

Views: 166

Answers: 0

Read More
user7894007
user7894007

Reputation:

How to Convert NSDateComponents to String?

Score: 1

Views: 103

Answers: 1

Read More
Kamil Skrzyński
Kamil Skrzyński

Reputation: 1

Problem with adding month value to date in Swift

Score: 0

Views: 175

Answers: 1

Read More
Eugene Brusov
Eugene Brusov

Reputation: 17844

swift 3 getting list of nearest hour quarters

Score: 3

Views: 2374

Answers: 4

Read More
ragnarius
ragnarius

Reputation: 5823

How to convert a DateComponents-object to a localized string, such as "08:40 PM", without specifying year, month, and day?

Score: 1

Views: 2057

Answers: 2

Read More
user14119170
user14119170

Reputation: 1901

DateComponentsFormatter - same dates, different results

Score: 0

Views: 225

Answers: 1

Read More
Heuristic
Heuristic

Reputation: 5341

iOS diff in days using dateComponent(_:from:to:) - what does nil mean for the result day?

Score: 0

Views: 45

Answers: 1

Read More
YMonnier
YMonnier

Reputation: 1429

How to convert NSDateComponents to NSDate?

Score: 10

Views: 14460

Answers: 4

Read More
PreviousPage 1Next