updated respond of date from string to integer