Implemnted dateTime to string conversion