1 Reply Latest reply on Jan 26, 2010 9:36 AM by msakrejda

    Question about comparing Date Values




      My Friend from work asked me about Date comparing.


      if ( dateVariable1 == dateVariable2){




      With this method is every time false..


      I think is because the 2 instanciated dates are from distinct objects.


      So,  I want know, why i can´t compare two Date like as above.


      And must use ObjectUtil.compare or Date.time or another validation.


      Is really because the distinct objects?