create a date object in javascripty with empty date code example Example: how to set empty date in javascript var date = Date.parse(dateString) || 0;