fixed date formating for null (#8)