SwiftMoment icon indicating copy to clipboard operation
SwiftMoment copied to clipboard

Wrong date parsing

Open designway opened this issue 5 years ago • 0 comments

Detailed Description

When I try to parse the date in specific format I get one year backdate.

Possible Implementation

let day = moment("178-06-2019", dateFormat: "DD-MM-YYYY") returns // 2018-12-23 00:00:00 GMT+05:30

Your Environment

  • Version used: (0.7)
  • Operating System and version: Xcode Playground

designway avatar Jun 26 '19 16:06 designway