25. November 2009 19:46
crmForm.all.sulz_testfeld.DataValue = new Date();
var dateFeld = crmForm.all.sulz_DatumsFeld;
var currentValue = dateFeld.DataValue;
if ((currentValue != null))
{
dateFeld.DataValue = new Date(currentValue.getYear(), currentValue.getMonth(), currentValue.getDate(), 7, 00);
}
var heute = new Date();
heute.setHours (08);
heute.setMinutes (00);
crmForm.all.sulz_DatumsFeld.DataValue = heute;
var heute = new Date();
var act_hour = heute.getHours();
var act_min = heute.getMinutes();
heute.setHours(cur_hour);
heute.setMinutes(cur_min);
crmForm.all.sulz_DatumsFeld.DataValue = today;
var effDate = new Date(crmForm.all.effectivefrom.DataValue);
//364 days * 24 hours * 60 minutes * 60 seconds * 1000 milliseconds
var expDate = new Date(effDate.getTime() + 31449600000);
crmForm.all.expireson.DataValue = expDate;
function StringToDateTimeConvert(source)
{
var source1 = source.split('T')[0];
var parts = source1.split('-');
var dat = new Date();
dat.setYear(parts[0]);
dat.setMonth(parts[1] - 1);
dat.setDate(parts[2]);
return dat;
}
var _date = StringToDateTimeConvert('2009-12-30T00:00:00+02:00');
var jetzt = new Date();
var TagInWoche = jetzt.getDay();
var Wochentag = new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
alert(Wochentag[TagInWoche]);