is this normal that null var is converted to current date? if yes is there a option to disable such behaviour result.data= dateFormat(data, "yyyy-mm-dd");