My Android app contains a table consisting of birthdays of friends. How can I get the dates within a given range? How will I compare dates?
            Asked
            
        
        
            Active
            
        
            Viewed 41 times
        
    -3
            
            
        - 
                    Well, you could start by reading [this](http://docs.oracle.com/javase/7/docs/api/java/sql/Date.html). – MarsAtomic Jul 31 '14 at 17:43
- 
                    What date format are you using in the table? – CL. Jul 31 '14 at 18:15
2 Answers
0
            
            
        You can compare dates using java.util.Date#compareTo.
 
    
    
        The Guy with The Hat
        
- 10,836
- 8
- 57
- 75
 
    
    
        srodrigo
        
- 3
- 1
0
            You can create Date object and use the before and after methods. For more, see How to compare dates in Java?
 
    
    
        Community
        
- 1
- 1
 
    
    
        betteroutthanin
        
- 7,148
- 8
- 29
- 48
 
    