fixed error where dateFormat would not be applied to lastDay:'primary' or lastDay:'alternate'