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
| |||
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 |
| |||
![]() ![]() ![]() ![]() ![]() 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> ![]() ![]() ![]() |