replace gdate by date