You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m trying to get the quarter of the year for a date but always getting a 0 value when using the .quarter property. Is this a known issue or am I doing something incorrect?
Sample Code using SwiftDate 5.x:
SwiftDate.defaultRegion = Region.current
let today = DateInRegion()
print(“Quarter = \(today.quarter)”)
The text was updated successfully, but these errors were encountered:
Hi,
I’m trying to get the quarter of the year for a date but always getting a 0 value when using the
.quarter
property. Is this a known issue or am I doing something incorrect?Sample Code using SwiftDate 5.x:
The text was updated successfully, but these errors were encountered: