Issue 20011: Created unit test for Date Widget textToDate function