I am trying to do a test of an input Date type object and display it's value on the page based on it's value. If the Date object is NULL or empty I would like to display as '00000' otherwise it should display in the format of 'yyDDD' date format. for the code below I am getting the desired date value if Date object is not null. If there is no date value then I am not getting value displayed as '00000'.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |