DateTime class problem solved