Well a coupla things,

Format is a string function so you can't get a date out of it though it does work perfectly as a string ..... 20120818

mm is minutes, MM is months!