Check out Page using SpServices.
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;
}
function CheckOutPage(bookURL,date) {
jQuery().SPServices({
operation: "CheckOutFile",
pageUrl: bookURL,
checkoutToLocal: "false",
lastmodified: "4 Jul 2013 3:15:00 GMT" });
}
No comments:
Post a Comment