nl_tokens: Returns a date object for the date represented by the given DOM element from the following sources ( in order ) : 1 ) element . data ( easydate . date ) ( in case we previously cached it ) 2 ) DOM element s title ( if it is a valid RFC 1123 timestamp ) 3 ) DOM element s innerHTML ( if it is a valid RFC 1123 timestamp )
pl_tokens: function get_date ( element , settings ) { var date = element . data ( "easydate.date" ) ; if ( isNaN ( date ) ) { var timestamp ; var time = Date . parse ( timestamp = element . attr ( "title" ) ) || Date . parse ( timestamp = element . html ( ) ) ; if ( ! isNaN ( time ) ) { date = new Date ( ) ; date . setTime ( time ) ; element . data ( "easydate.date" , date ) ; if ( settings . set_title && ! <mask> . attr ( "title" ) ) element . attr ( "title" , timestamp ) ; } } return date ; }