modify date class