modify date formate corresponding to server