there is a parse method on the Date class which allows you to create a ruby 
date object from a string
http://www.ruby-doc.org/core/classes/Date.html#M000656

you could do this for each of the dates listed below, and then have ruby sort 
them, and format in the same style as they are shown in below, then you can do 
a string compare.

Paul
  ----- Original Message ----- 
  From: watir-user watir-user 
  To: [email protected] 
  Sent: Friday, June 01, 2007 8:04 AM
  Subject: [Wtr-general] How do i check the sorting of Date?


  Hi All,

  I need help for checking the sorting date.

  I have a link called Job Date below of this link displays list of Date, 
clicking on this link it sorts the date field, like follow
  05/31/2007 09:36 AM 
  05/31/2007 09:36 AM
  05/31/2007 09:13 AM
  05/30/2007 03:20 PM 
  05/30/2007 11:16 AM 
  05/30/2007 09:52 AM 
  05/30/2007 09:49 AM 
  05/29/2007 12:59 PM 
  05/29/2007 10:45 AM 

  How do i confirm that clicking on Job Date link, it displays all the dates in 
proper sorting order?

  Looking forward,





------------------------------------------------------------------------------
  Looking for people who are YOUR TYPE? Find them here!


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


  _______________________________________________
  Wtr-general mailing list
  [email protected]
  http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to