format date times for messages