nl_tokens: Format a date string to the given resolution .
pl_tokens: function formatDate ( datestr , resolution ) { datestr = datestr . replace ( ' ' , 'T' ) ; // Cross-browser accepted date format var date = new Date ( datestr ) ; var output = MONTHS [ date . getMonth ( ) ] ; resolution = resolution || DATE_MONTH ; if ( resolution >= DATE_DAY ) { output += ' ' + date . getDate ( ) + ',' ; } output += ' ' + <mask> . getFullYear ( ) ; if ( resolution >= DATE_MINUTE ) { output += ' at ' + date . getHours ( ) + ':' + ( '0' + date . getMinutes ( ) ) . slice ( - 2 ) ; } if ( resolution >= DATE_SECOND ) { output += ':' + ( '0' + date . getSeconds ( ) ) . slice ( - 2 ) ; } return output ; }