Following is the scenario:
I have a String date and a date format which is different. Ex.: date: 2016-10-19 dateFormat: \"DD-MM-YYYY\".
String
I just found a really messed up case.
moment('Decimal128', 'YYYY-MM-DD').isValid() // true