onlyDay method Null safety

DateTime onlyDay()