Friday, April 20, 2012

display all dates given start and end date

My following code fetches 2 dates



foreach records $get_times {
lassign $records start_date stop_date
puts [clock format [clock scan $start_date] \
-format {%d %b}]
puts [clock format [clock scan $stop_date] \
-format {%d %b}]
}


Is there a way I can display all the dates between the start_tdate and stop_date.
Something like:



puts "<tr><td>the $start_date</td>the next Date</td><td>....</td><td>the $stop_date</td>"




No comments:

Post a Comment