Hi,
Context : I'd like to re-write my datepicker plugin that goes along with the
simplecalendar plugin.
When you want to turn 3 numbers (one for the day, one for the month and one for the year) into a string according to a format, you can use a built-in function :
var d = new Date(year, month-1, day);
return $tw.utils.formatDateString(d, format || "DDth MMM YYYY");
And I was wondering how to do the other way round, getting the three numbers from a string and the format that was used to build the string.
Has this been already done ? Even in a limited way for formats used in most cases ?
Thanks in advance
FrD