Skip to content

.fromString always return nil #115

Description

@MrEldin

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions