New utility method 'convertStringToDate'

returns a java date object from a string formatted as DateFormatNT
specifies
Fixes bug in copyPrevious and copyPreviousSelected

This two methods were not working with the sorting feature. There is not
a straight forward way to implement it now, so a workaround is used