methods of working of date