//Type your code here
function SdateLoad(){
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10) {
dd = '0'+dd;
}
if(mm<10) {
mm = '0'+mm;
}
frmHome.Calone.validEndDate = [dd,mm,yyyy];
frmHome.calTwo.validStartDate = [dd,mm,yyyy];
frmHome.calThree.validStartDate = [dd,mm,yyyy];
frmHome.Calfour.dateComponents = [dd,mm,yyyy];
}
function SdateproperOneOnSelection(evenobj){
alert("Selected date" + evenobj.day + "/" + evenobj.month + "/" + evenobj.year);
}
function SdateproperThreeOnSelection(evenobj){
frmHome.Calfour.validStartDate = [evenobj.day, evenobj.month, evenobj.year];
frmHome.Calfour.dateComponents = [evenobj.day, evenobj.month, evenobj.year];
}
function doreset(){
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10) {
dd = '0'+dd;
}
if(mm<10) {
mm = '0'+mm;
}
frmHome.Calone.dateComponents = [dd,mm,yyyy];
frmHome.calTwo.dateComponents = [dd,mm,yyyy];
frmHome.calThree.dateComponents = [dd,mm,yyyy];
frmHome.Calfour.dateComponents = [dd,mm,yyyy];
}
function SdateLoad(){
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10) {
dd = '0'+dd;
}
if(mm<10) {
mm = '0'+mm;
}
frmHome.Calone.validEndDate = [dd,mm,yyyy];
frmHome.calTwo.validStartDate = [dd,mm,yyyy];
frmHome.calThree.validStartDate = [dd,mm,yyyy];
frmHome.Calfour.dateComponents = [dd,mm,yyyy];
}
function SdateproperOneOnSelection(evenobj){
alert("Selected date" + evenobj.day + "/" + evenobj.month + "/" + evenobj.year);
}
function SdateproperThreeOnSelection(evenobj){
frmHome.Calfour.validStartDate = [evenobj.day, evenobj.month, evenobj.year];
frmHome.Calfour.dateComponents = [evenobj.day, evenobj.month, evenobj.year];
}
function doreset(){
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10) {
dd = '0'+dd;
}
if(mm<10) {
mm = '0'+mm;
}
frmHome.Calone.dateComponents = [dd,mm,yyyy];
frmHome.calTwo.dateComponents = [dd,mm,yyyy];
frmHome.calThree.dateComponents = [dd,mm,yyyy];
frmHome.Calfour.dateComponents = [dd,mm,yyyy];
}
0 comments:
Post a Comment