Quantcast
Channel: DataSource Controls - SqlDataSource, ObjectDataSource, etc.
Viewing all articles
Browse latest Browse all 956

convert date to dd/MM/YYYY format in ajax

$
0
0

Hi 

below My code in ajax shows

if (!String.prototype.parseNETDate) {
String.prototype.parseNETDate = function () {
if (this.indexOf('-') == -1) {
return new Date(parseInt(this.slice(6, 19)));
} else {
return new Date(parseInt(this.slice(6, 20)));
}
};
}

out out is  Tue Oct 10 1989 00:00:00 GMT+0530 (India Standard Time)

i want op in dd/MM/YYYY 


Viewing all articles
Browse latest Browse all 956

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>