Appframe Knowledge Base


1 hits
0

Using af.common.unFormatByMask - Parsing a date by using a format mask

/* Calling the af.common.unFormatByMask function, passing a date string and format mask
   will try to parse the date string into a date object using the passed format mask. */

var vDateString =  "Saturday the 6th of October 2012 at 09:30:00";

af.common.unFormatByMask(vDateString, "dddd 'the' dS 'of' MMMM yyyy 'at' HH:mm:ss");
// Returns a date object: Sat, 06 Oct 2012 09:30:00 GMT

common web · Perma link post comment Posted by: Jan Henrik H. Meling (05-okt-2012)