api d params to date