If you use URIencode() method you will find that some special characters (, / ? : @ & = + $ #) including colon is not encoded to ‘%3A’. To overcome this issue, you should use encodeURIComponent() encodeURIComponent(‘:’);
JSON date string to Date Object using RegEx
JSON has become de-facto standard for web services. When you use JSON in web services the date is returned as some numbers. How to convert it to readable date format? Checkout the following code on how we utilise Regular Expression to tackle this.. var prettyDate = prettyDate(“/Date(1277334000000+0100)/”); alert(prettyDate); var prettyTime = prettyTime(“/Date(1277334000000+0100)/”); alert(prettyTime ); function […]