Refactored date formatting and added new shortcut for inserting time into buffer.