RcBuilder@walla.com
call centre: 054-5614020

javascript Date object

Posted by: RcBuilder  /   Category: Date / JAVASCRIPT   /   No Comments
06
Oct
2014

javascript Date object set date // 18.06.2013 16:40 var TheDay = new Date(); TheDay.setFullYear(2013,06,18); TheDay.setHours(16,40,0,0); // now var TheDay = new Date(); date methods: getDate() getHours() getMinutes() getSeconds() dateDiff // 18.06.2013 16:40 var date1 = new Date(); date1.setFullYear(2013,06,18); date1.setHours(16,40,0,0); // now var date2 = new Date(); date2.setFullYear(2012,12,23); date2.setHours(13,03,0,0); SumSeconds = 0; var Days = date1.getDate()  -  date2.getDate(); SumSeconds += Days*60*60*24;  // day 2 seconds var Hours = date1.getHours() - date2.getHours(); SumSeconds += Hours*60*60;  // hour 2 seconds var Minutes = date1.getMinutes() -.

Read more

javascript CountDown clock

Posted by: RcBuilder  /   Category: body / Date / getElementById / HTML / innerHTML / JAVASCRIPT / onload event / setTimeout   /   No Comments
06
Oct
2014

javascript CountDown clock var obj,SumSeconds; function InitClock() { //18/06/2013 16:40:00.000 var TheDay = new Date(); TheDay.setFullYear(2013,06,18); TheDay.setHours(16,40,0,0); var Time = new Date(); // Now SumSeconds = 0; var Days = TheDay.getDate()-Time.getDate(); SumSeconds += Days*60*60*24; // day 2 seconds var Hours = TheDay.getHours()-Time.getHours(); SumSeconds += Hours*60*60; // hour 2 seconds var Minutes = TheDay.getMinutes()-Time.getMinutes(); SumSeconds += Minutes*60; // minute 2 seconds var Seconds = TheDay.getSeconds()-Time.getSeconds(); SumSeconds += Seconds; // seconds //alert(SumSeconds); ShowClock(); } function ShowClock() { var Minutes =.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים