• Sorry for the confusion.

    I need to compare a date value that is stored in the DB via Java like this

    --> "" + (cal.getTime().getTime()/1000)

    So for comparing at run time i need to convert my date object (1/9/2008) as a millisecond value so that i can compare it with the DB value.

    Are you able to understand my problem now ?