Foros del Web » Programando para Internet » ASP Clásico »

Fechas

Estas en el tema de Fechas en el foro de ASP Clásico en Foros del Web. Quiero Utilizar un IF con un Formato de Fechas.. DiaActual = weekday if DiaActual = 2 else end if. pero no me sale.... esto lo ...
  #1 (permalink)  
Antiguo 30/04/2003, 03:01
 
Fecha de Ingreso: noviembre-2002
Ubicación: Monterrey N.L. Mexico
Mensajes: 141
Antigüedad: 21 años, 7 meses
Puntos: 0
Fechas

Quiero Utilizar un IF con un Formato de Fechas..

DiaActual = weekday

if DiaActual = 2

else

end if.


pero no me sale....
esto lo estoy haciendo en HTML y no sobre ASp...

alguien tiene alguna idea.. ?

Saludos
:-p Luis.R.Acosta
  #2 (permalink)  
Antiguo 30/04/2003, 03:42
 
Fecha de Ingreso: febrero-2002
Ubicación: Navarra
Mensajes: 701
Antigüedad: 22 años, 4 meses
Puntos: 2
perdona pero esto que significa:

Cita:
esto lo estoy haciendo en HTML y no sobre ASp...
Un saludo
  #3 (permalink)  
Antiguo 30/04/2003, 09:07
Avatar de Fr@Nc3$c0  
Fecha de Ingreso: abril-2002
Ubicación: Barcelona (Spain)
Mensajes: 710
Antigüedad: 22 años, 2 meses
Puntos: 1
Quieres decir que no lo metes entre las correspondientes etiquetas de ASP <% %> ?

HTML no tiene If ni nada..

Saludos.
__________________
Francesc Mula Calleja
Hay mucho por ver todavía...
  #4 (permalink)  
Antiguo 30/04/2003, 09:35
Avatar de bakanzipp  
Fecha de Ingreso: noviembre-2001
Ubicación: santiago de shilli
Mensajes: 2.554
Antigüedad: 22 años, 7 meses
Puntos: 0
si tu pagina es .html no puedes usar codigo asp...solo codigo cliente...

si es asi validalo a nivel de javascript
  #5 (permalink)  
Antiguo 01/05/2003, 19:36
 
Fecha de Ingreso: noviembre-2002
Ubicación: Monterrey N.L. Mexico
Mensajes: 141
Antigüedad: 21 años, 7 meses
Puntos: 0

PERDON .. CREO que fue una Pregunta IDIOTA.....

pero lo que quiero hacer es esto... haber si me puede Ayudar..
tengo este Codigo. donde Capturo las horas de los procesos..
pero quiero.... que si es lunes o martes, no aparescan ciertos procesos... ESTE ES UNA PARTE DE MI CODIGO...

<head>
<title>Bitacora Operacional diaria</title>
</head>
<body>
<TABLE border="1" width="100%" bgcolor=#F1F1F1>
<Tr>
<TD WIDTH=20% HEIGHT=50% VALIGN=BOTTOM>
<Center>
<font face="blackchancery" Size="5">
<script language=JavaScript>
<!--
;today = new Date(); weekday = today.getDay();if (weekday == 6)
document.write('Sábado');if (weekday == 0) document.write('Domingo');
if (weekday == 1) document.write('Lunes');if (weekday == 2) document.write('Martes');
if (weekday == 3) document.write('Miércoles');if (weekday == 4) document.write('Jueves');
if (weekday == 5) document.write('Viernes')
// -->
</script>
</FONT>
</Center>
</td>
<TD WIDTH=60% HEIGHT=50% VALIGN=BOTTOM>
<Center>
<font color="#999966" Size="6" face="antsypants">Bitacora Operacional</font>
</Center>
</td>
<TD WIDTH=20% HEIGHT=50% VALIGN=BOTTOM>
<FONT FACE=ARIAL>
<div align="right">
<script language=JavaScript>
<!--
;today = new Date(); weekday = today.getDay();if (weekday == 6)
document.write('Sábado');if (weekday == 0) document.write('Domingo');
if (weekday == 1) document.write('Lunes');if (weekday == 2) document.write('Martes');
if (weekday == 3) document.write('Miércoles');if (weekday == 4) document.write('Jueves');
if (weekday == 5) document.write('Viernes');document.write(', '); month = today.getMonth();
if (month == 0) document.write('Enero');if (month == 1) document.write('Febrero');
if (month == 2) document.write('Marzo');if (month == 3) document.write('Abril');
if (month == 4) document.write('Mayo');if (month == 5) document.write('Junio');
if (month == 6) document.write('Julio');if (month == 7) document.write('Agosto');
if (month == 8) document.write('Septiembre');if (month == 9) document.write('Octubre');
if (month == 10) document.write('Noviembre');if (month == 11) document.write('Diciembre');
date = today.getDate(); year=today.getYear();document.write (' ', date, ', ',year);// -->
</script>
</div>
</FONT>
</td>
</tr>
</table>
<%
Dim Diaactual

%>


<TABLE border="1" width="100%" bgcolor=#F1F1F1 >
<Tr>
<Td>
<Center>
<TABLE border="1" width="85%" bgcolor=#FFFFff >
<tr>
<TD WIDTH=6% HEIGHT=30% bgcolor=#99CC99 >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="4">
<INPUT NAME="Nombre" TYPE="text" SIZE="4">
</Center>
</td>
<TD WIDTH=6% HEIGHT=30% bgcolor=#99CC99 >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="4"><br>
<INPUT NAME="Nombre" TYPE="text" SIZE="4">
</td>
<TD WIDTH=6% HEIGHT=30% bgcolor=#99CC99 >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="5"><br>
<INPUT NAME="Nombre" TYPE="text" SIZE="5">
</td>
<TD WIDTH=6% HEIGHT=30% bgcolor=#99CC99 >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="5"><br>
<INPUT NAME="Nombre" TYPE="text" SIZE="5">
</td>
<TD WIDTH=6% HEIGHT=30% bgcolor=#99CC99 >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="5"><br>
<INPUT NAME="Nombre" TYPE="text" SIZE="5">
</td>
<TD WIDTH=6% HEIGHT=30% bgcolor=#99CC99 >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="5"><br>
<INPUT NAME="Nombre" TYPE="text" SIZE="5">
</td>
<TD WIDTH=6% HEIGHT=30% bgcolor=#99CC99 >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="5"><br>
<INPUT NAME="Nombre" TYPE="text" SIZE="5">
</td>
<td WIDTH=6% HEIGHT=30% >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="5"><br>
<INPUT NAME="Nombre" TYPE="text" SIZE="5">
</td>

<td WIDTH=6% HEIGHT=30% >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="5"><br>
<INPUT NAME="Nombre" TYPE="text" SIZE="5">
</td>


<td WIDTH=6% HEIGHT=30% >
<Center><font face="cg times" size="2">
<Br>
Proceso<br></font>
<INPUT NAME="Nombre" TYPE="text" SIZE="5"><br>
<INPUT NAME="Nombre" TYPE="text" SIZE="5">
</td>
</tr>
</Table>
</body>
</html>


PODRIAN AYUDARME
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:27.