In a database table there is field for expiry date of the credit card number of the customer if i want to retrieve it i have to with: String getDate=ResultSet.getString(int i) so the date retreived is in the String format now if i want to compare this date with the current date how should i do it please explain thank you
You can actually retrieve the date from the database, into java.util.Date, rather than java.lang.String. java.util.Date date = rs.getDate(1); Then, you can call the compareTo() method in java.util.Date. Hope this helps!
posted 18 years ago
thank you asuthosh your reply was helpfull
We can walk to school together. And we can both read this tiny ad:
how do I do my own kindle-like thing - without amazon