working of DateTime object