Add date formatter for messages. Issue: medic/medic-webapp#577