I have a form which outputs multiple date values, dependent on previous criteria.
Is there a way that I can use a textbox to show the date of whichever of these dates is closest to the present day?
i.e. I have 4 due dates (6/30/2012, 6/30/2013, 6/30/2014, 6/30/2015) and I want the text box to look at these 4 boxes and show the soonest (6/30/2012)
Would Switch statements work here and if so, how would I code it?
Is there a way that I can use a textbox to show the date of whichever of these dates is closest to the present day?
i.e. I have 4 due dates (6/30/2012, 6/30/2013, 6/30/2014, 6/30/2015) and I want the text box to look at these 4 boxes and show the soonest (6/30/2012)
Would Switch statements work here and if so, how would I code it?