changing date formats, fixed modal sumit