Fixed bug when set new date in string format