S
S
Stepan2016-01-05 14:34:42
iOS
Stepan, 2016-01-05 14:34:42

NSDate formatter returns nil?

Problem: returns empty (i.e. goes to else), although before if let checked createdDate for content - print(self.createdDate)079b2a6b8ba84352b00ae3470780bc59.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Tikhonov, 2016-01-05
Smykovsky @rosse1010

Most likely the string format is not correct or does not match the input string. That is, your self.createdDate should contain something like 04/30/2007 20:58

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question