.fromString always return nil
MrEldin opened this issue · comments
Hi,
I am trying to create Date object from time string, but without success:
print(Date(fromString: "16:12:00", format: .custom("HH:mm:ss"))?.toString(format: .custom("MMM d, yyyy HH:mm")))
The result is nil. Can I get some help?