<script src="common/ej.globalize.js">script>
ej.parseDate("1234")
//Result: null
ej.parseDate("20/09/2017", "dd/mm/yyyy")
//Result: Fri Jan 20 2017 00:09:00 GMT+0530 (India Standard Time)
ej.parseDate("Fri sep 15 2017", "ddd MMM dd yyyy")
//Result: Fri Sep 15 2017 00:00:00 GMT+0530 (India Standard Time)
|
ej.parseDate("20/09/2017","dd/mm/yyyy", “en-US”) |
Hi Mohanraj, thank you for the solution. However, it doesn't look to be applicable to our case. The resulted string can be from any formula, so we don't know which format we can use when calling parseDate().
Thanks
Hui