nl_tokens: from d - m - y h : i : s
pl_tokens: function ( ctx ) { var DMYRegex = / ^([0-9]{1,2})[\.\-\/]([0-9]{1,2})[\.\-\/]([0-9]{4,4})\s([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}) / gi ; var regexmatch = DMYRegex . exec ( ctx . value ) ; if ( ! regexmatch || regexmatch . length !== 7 ) { return console . log ( 'valdiation error -- not DMY' , ctx ) ; } var datetime = [ [ regexmatch [ 3 ] , regexmatch [ 2 ] , regexmatch [ 1 ] ] . join ( '-' ) , [ regexmatch [ 4 ] , regexmatch [ 5 ] , regexmatch [ 6 ] ] . join ( ':' ) ] . join ( ' ' ) ; var date = new Date ( datetime ) ; ctx . <mask> = date . getTime ( ) ; return ctx ; }