SwiftDate icon indicating copy to clipboard operation
SwiftDate copied to clipboard

🐔 Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift.

Results 95 SwiftDate issues
Sort by recently updated
recently updated
newest added

While I was testing something I was not sure if `Date().dateAt(.endOfDay)` and `Date().dateAtEndOf(.day)` produced the same result, so I tried comparing them like this ```swift XCTAssertEqual(Date().dateAt(.endOfDay), Date().dateAtEndOf(.day)) ``` Which produced...

Weekday(```Convenience getter for the date's `weekday` component```) is not equal for date(2017-10-04 00:00:00 +0000) in iOS 12.3.1 => 3 iOS 13.3.1 => 4 Issue is reproducing only on devices

Default constructor of DateInRegion defaults to using SwiftDate.defaultRegion which is Region.UTC, that in turn uses Locale.autoupdatingCurrent as its default locale. As the result if device is set to display time...

Hello, Please read my case: I am in GMT +4 timezone, I need UTC equivalent of my start and end of day. Example: The time now is: 03/10/2019 02:00 AM...

I tried the following: `Date().in(region: .init(calendar: Calendar.current, zone: TimeZone.current, locale: Locale.current)).date.toString(.date(.full))` What is happening is, it print UTC time in full instead of my current time. I can achieve what...

Idea: ``` formatter.amSymbol = "am" formatter.pmSymbol = "pm" ``` is there a way to do this using swiftDate?

question

SwiftDate (6.0.3) I've got two timeperiods: First: -start: 2019-08-02 -end: 2019-09-07 Second: -start: 2019-09-05 -end: 2019-09-06 firstTimePeriod.intersects(with: secondTimePeriod) -returns false secondTimePeriod.intersects(with: firstTimePeriod) -returns true Relation function goes right into .after...

I am using: ```swift let yearArray = [1970, 1991, 1999, 2005, nil].map( { transformEndDateOfYear($0) }) func transformEndDateOfYear(_ year: Int?) -> Date? { guard let year = year else { return...

Not to unduly create work but have you considered including recurring dates features. Perhaps include https://github.com/teambition/RRuleSwift

enhancement

The following bug fails the unit tests: https://bugs.swift.org/browse/SR-9101

bug