Get date In GMT Format using javascript
function getGMTDate(){
var myDate = new Date();
var month = myDate.getMonth()+1;
var gmtdate = myDate.getDate()+' '+month+' '+myDate.getFullYear();
gmtdate = gmtdate +' '+ myDate.getHours()+':'+myDate.getUTCMinutes()+':'+myDate.getSeconds()+' GMT';
return gmtdate;
}
No comments:
Post a Comment