Paulo and Seema: Refactored date to string method