- This topic has 3 replies, 3 voices, and was last updated 10 years, 12 months ago by .
-
Topic
-
I have a list with 2 or more (upto 5) dates. I have to pick the record based on which one of them is closest to the current date, if they are less than current date. How do I do this is tcl? So far I have
set x { a really long comma delimited list which has been spilt}
set dateList2 [lrange $x 12 17]
06/30/2012 05/31/2011 {} {} {} {}
Here I need to pick out 06/302012 as its the one closest to current date of 10/22/2013. I tried lsort, but I am not getting reliable results. I can always do expr to compare, but I don’t want to do that if i have all of the dates populated.
😥 Help?
Vidya
Viewing 2 reply threads
Viewing 2 reply threads
- The forum ‘Cloverleaf’ is closed to new topics and replies.