check if a date type is null

Reply

Join Date: Mar 2008
Posts: 58
Reputation: hajjo is an unknown quantity at this point 
Solved Threads: 0
hajjo hajjo is online now Online
Junior Poster in Training

check if a date type is null

 
0
  #1
32 Days Ago
anyone knows how? if its empty or null?

events.get(x).getOccurredDate() == null

thats not working. neither

events.get(x).getOccurredDate().equals("")
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,383
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 252
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven
 
0
  #2
32 Days Ago
might help to know what this getOccurredDate method looks like, or what Class it's from if it's not yours.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC