add getDateFromDatetime() and getDetailedDateFromDatetime() funcs