simplify getDateString()

can just call strftime instead of manually parsing timestamp.