Skip to content

.fromString always return nil #115

@MrEldin

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?

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