Determinare il giorno della settimana in ASP
13 Novembre 2007 ASP
   



  1. <%
  2. dim dayoftheweek(7)
  3. dayoftheweek(1) = "Dom"
  4. dayoftheweek(2) = "Lun"
  5. dayoftheweek(3) = "Mar"
  6. dayoftheweek(4) = "Mer"
  7. dayoftheweek(5) = "Gio"
  8. dayoftheweek(6) = "Ven"
  9. dayoftheweek(7) = "Sab"
  10.  
  11.  
  12. dates = dateSerial(anno, mese, giorno)
  13. dayofweek = weekday(dates)
  14. Response.write("Giorno della Settimana: "+dayoftheweek(dayofweek))
  15. %>