change datetime to date in network