change date structure