date formatting working onChange now