Converts date to string on ember side.