I tested the DatePicker widget with mm/dd/yy format. it works.
However if I tried it with yy-mm-dd, it always prints a day before.
For example, I picked May 2nd., prints 05/02/2018 but when I changed the format to yy-mm-dd, it prints 2018-05-01!
Have you ever tried it?