SyntaxFix
Write A Post
Hire A Developer
Questions
Try initializing with null value.
private java.util.Date date2 = null;
Also private java.util.Date date2 = ""; will not work as "" is a string.
private java.util.Date date2 = "";