This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!

Zandis Murāns

Ranch Hand
+ Follow
since Aug 18, 2009
Zandis likes ...
Java ME Opera Java
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Zandis Murāns

Yes, there is - by using date fromats:

Anyways, this is not right approach to handle dates in context of database.
This line is problematic:

You're trying to access more char elements than you'r string has (as array's numbering starts at zero not one).
Try to change this line to this:
10 years ago
Solution is to iterate backwards.
10 years ago
Add Calendar.DAY_OF_MONTH instead of Calendar.DATE
10 years ago
You should never do this. Instead, try to parse you'r xml to tell if it's valid or not.
As Campbell Ritchie mentioned already, you should deal such things with regex.
Here's little example:

To understand my regex ^[^\d]*?$, please refer to this guide:
10 years ago
I tried to read what you're trying to achieve three times but no success, sorry.
10 years ago