used strftime method to create date and time nicely