This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Building Blockchain Apps and have Michael Yuan on-line!
See this thread for details.
Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!

Zandis Murāns

Ranch Hand
+ Follow
since Aug 18, 2009
Zandis likes ...
Java ME Opera Java
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:
8 years ago
pass
Solution is to iterate backwards.
8 years ago
Add Calendar.DAY_OF_MONTH instead of Calendar.DATE
8 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
8 years ago
I tried to read what you're trying to achieve three times but no success, sorry.
8 years ago