Javascript Date ToWCFDate()

Description

Javascript Date ToWCFDate()

Date.prototype.ToWCFDate = function() {
        // here is how we force wcf to parse as UTC and give correct local time serverside        
        var date = '\/Date(' + this.getTime() + '-0000)\/';
        return date;
    };/*from w  w w  .j av  a  2 s. c  o  m*/



PreviousNext

Related