Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.fromString always return nil #115

Open
MrEldin opened this issue Apr 5, 2022 · 0 comments
Open

.fromString always return nil #115

MrEldin opened this issue Apr 5, 2022 · 0 comments

Comments

@MrEldin
Copy link

MrEldin commented Apr 5, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant