»
AnglaisFran�aisVietnamien

Imprimer - Calculatrice pour le dimanche - JavaScriptBank.com

Version compl�te: jsB@nk » Heure » Validation » Calculatrice pour le dimanche
URL: https://www.javascriptbank.com/calculator-for-sunday.html

Calculatrice pour le dimanche © JavaScriptBank.comUtilisez cette JavaScript à savoir quand dimanche sera en un point donné du temps.

Version compl�te: jsB@nk » Heure » Validation » Calculatrice pour le dimanche
URL: https://www.javascriptbank.com/calculator-for-sunday.html



JavaScript
<script language="JavaScript"><!-- Beginfunction WeekStart(Month, Year, StartOfWeekDay) {  _Date = new Date(Year, Month, 1)  _LastDate = new Date()  _LastDate = new Date(_Date)  _LastDate.setMonth(_Date.getMonth() + 1)  _LastDate.setHours(_LastDate.getHours() - 24)  _Returns = new Array()  if (StartOfWeekDay == null) {    StartOfWeekDay = 0  }  var I = 1  while (I <= _LastDate.getDate()) {    _Date.setDate(I)    if (_Date.getDay() == StartOfWeekDay) {      _Returns[_Returns.length] = new Date(_Date)      I += 6    }    I++  }  return(_Returns)}//  End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form>Month <select name="Month"><option value="0">Jan</option><option value="1">Feb</option><option value="2">Mar</option><option value="3">Apr</option><option value="4">May</option><option value="5">Jun</option><option value="6">Jul</option><option value="7">Aug</option><option value="8">Sep</option><option value="9">Oct</option><option value="10">Nov</option><option value="11">Dec</option></select><br>Year <input type="text" name="Year" size="4" maxlength="4"><br><input type="button" value="Get Days" onclick="alert(WeekStart(document.forms[0].Month.value, document.forms[0].Year.value, 0))"></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->