Issue 20011: Adding tests and fixing bugs in DateWidget
Issue 20011: Adding tests and fixing bugs in DateWidget