Better date and time field formatting

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>