date picker optimize