date convertion added to datetime convertion functions