views:

427

answers:

1

How do I sort the date and time in decending order in edit box?

+1  A: 

an edit box contains only one single text (either multiple-lines or single line).

if you want a list of date/time string, use CListBox and it has sort member function. Otherwise you'll need to retrieve the complete string from edit box, load it into an array of lines then sort, and put back the sorted result.

Francis