Today I had to admit that I did not remember the password for a MySQL user account. Since it’s saved in encrypted form simply reading it out won’t mean I can recover it. A Google search did eventually bring up the correct way of doing it, however it took me quite some time – so here’s how you can do this:
NSDate and NSDateFormatter
Hey Jay, Great Idea. Here’s a little snippet of code that grabs the current date, then using a couple of NSDateFormatter methods converts it to the current time.