This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * convert a JSONDATE (something like /Date(1284604200000-0700)/) to something more human readable | |
| */ | |
| function jsonDate(str) { | |
| return new Date(parseInt(str.replace(/\/Date\((.*?)\)\//gi, "$1"), 10)); | |
| } | |
| // jsonDate('/Date(1284604200000-0700)/'); | |
| // -> Wed Sep 15 2010 19:30:00 GMT-0700 (PDT) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var isMSIE = /*@cc_on!@*/false; | |
| var isIE6 = false /*@cc_on || @_jscript_version < 5.7 @*/; |
NewerOlder