+ Pagina de Inicio
+Newsletter +InscribeteGratis
+Trucos +Ver secc.trucos
+Recursos +secc.recursos
+Comunidad +Foros +Ganar dinero +Herramientas +Libros
+Webmasters +Webmasters + G o o g l e
+Software +ir a secc. Soft
+AreasExclusivas +Zona Flash +Zona PHP +Zona ASP +Zona VB +Zona ADSL +Zona MAC
+Noticias [N] +ir a noticias
+DiVX +Area Divx
+Games/Ocio +Area Juegos
Descripcion:Este codigo en ASP da un ejemplo de la cuenta descendiente de la fecha usando la función del datediff
Lenguaje: ASP Codigo enviado por Marcos Alonso
Copiar los codigos y pegar
<% '***Date countdown example using the datediff function '***Declare variables to be used Dim StartDate, CountDownTo, DaysLeft '***Specify date to count down to CountDownTo = "10/31/03" '***Specify today as the start date StartDate = Date() '***Compute how many days are remaining by specifying "d" '***To get years use "yyyy", quarter is "q", month is "m" '***hour is "h", minutes are "n", and seconds are "s". DaysLeft = DateDiff("d", StartDate, CountDownTo) '***Display your results Response.Write "There are " & DaysLeft & _ " days left until Halloween of 2003." %>