date utilities fixes