changed write date formate