added formatter for datetime