Zandis Murāns

Ranch Hand
+ Follow
since Aug 18, 2009
Zandis likes ...
Java ME Opera Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
14
Received in last 30 days
0
Total given
4
Given in last 30 days
0
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:
12 years ago
pass
Solution is to iterate backwards.
12 years ago
Add Calendar.DAY_OF_MONTH instead of Calendar.DATE
12 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: http://www.regular-expressions.info/tutorial.html
12 years ago
I tried to read what you're trying to achieve three times but no success, sorry.
12 years ago