Added change date function