tweaks date functions, class