strftime and tests

Adds strftime() formatting by converting Date / Datetime to TmStruct and using TmStruct's strftime().