cancel
Showing results for 
Search instead for 
Did you mean: 

HTMLB inputfield date type inital format 0000-00-00

SidBhattacharya
Product and Topic Expert
Product and Topic Expert
0 Kudos

Is there a way to display a blank value instead of 0000-00-00 for a inputfield of type date (in HTMLB) ?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try this:

<hbj:inputField id="date" type="DATE" value="" showHelp="TRUE"/>

Don think, it shows any format like 0000-00-00.

Post your htmlb tag if u need more help!

Plz don forget points, if it helped

Regards,

P.

SidBhattacharya
Product and Topic Expert
Product and Topic Expert
0 Kudos

It evaluates to value="" as you mentioned in your post.

<hbj:inputField id="issuedDate" type="date" showHelp="true" value="<%=concept.getIssuedDate()%>"/>

But this shows as 0000-00-00

Former Member
0 Kudos

I don understand:

If u put my line, do u see 0000-00-00?

If not then concept.getIssuedDate() is causing it to show 0000-00-00.

What value does this getIssuedDate() brings in?? If itz bringing in 0000-00-00 then put a if condition and display empty string in the inputfield.

Regards,

P.