add nullable and date format functionality