User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 456,521 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,809 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 948 | Replies: 3
Reply
Join Date: Oct 2007
Posts: 1
Reputation: econobond007 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
econobond007 econobond007 is offline Offline
Newbie Poster

I need help sorting dates

  #1  
Oct 2nd, 2007
My java task is to write a code that sorts dates from a text, using readline. so 1/04/2005 is good, not 22/44/1555.... exceptions perhaps...

if anyone is free to help me, please mail or aim(acumenred)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2006
Location: City of God
Posts: 163
Reputation: orko is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 10
orko orko is offline Offline
Junior Poster

Re: I need help sorting dates

  #2  
Oct 3rd, 2007
that is awesome... ... so what have u done so far?
A Perfect World
Reply With Quote  
Join Date: Dec 2004
Location: London or Slovakia
Posts: 2,628
Reputation: peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice peter_budo is just really nice 
Rep Power: 12
Solved Threads: 311
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: I need help sorting dates

  #3  
Oct 3rd, 2007
Some good examples how to work with date can be found here in Java's subsection Date and Time
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, JAVAWUG (Java Web User Group), Coding the Architecture
Reply With Quote  
Join Date: Feb 2006
Posts: 1,515
Reputation: masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light 
Rep Power: 10
Solved Threads: 136
masijade's Avatar
masijade masijade is online now Online
Posting Virtuoso

Re: I need help sorting dates

  #4  
Oct 3rd, 2007
Read the API for SimpleDateFormat and its setLenient method.
Last edited by masijade : Oct 3rd, 2007 at 7:57 am. Reason: typo
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 4:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC