naoty / Timepiece

Intuitive date handling in Swift
MIT License
2.63k stars 147 forks source link

How can I check format of string #47

Closed Jirka1111 closed 8 years ago

Jirka1111 commented 8 years ago

Is there a simple way how can I check a format of string variable?

Example:

if(stringVariable.format == format("dd/MM/yyyy"){ print("format of stringVariable is the same as date!") }

naoty commented 8 years ago

@Jirka1111 I don't know it. Do you ask about Timepiece or Swift? If you want to know about Swift, I will close this issue.

Jirka1111 commented 8 years ago

I am sorry, the question belongs to another library.