Ver Mensaje Individual
  #6 (permalink)  
Antiguo 20/02/2005, 17:42
Avatar de GeoAvila
GeoAvila
Colaborador
 
Fecha de Ingreso: diciembre-2003
Ubicación: Antigua Guatemala
Mensajes: 4.032
Antigüedad: 20 años, 5 meses
Puntos: 53
bueno aqui hay ejemplo bastante sencillo

solo ingresas la fecha alguna fecha del mes que queres saber la fecha y listo..

Código:
Private Sub Command1_Click()
MsgBox DaysInMonth(Date)
End Sub
 Public Function DaysInMonth(dteInput As Date) As Integer
DaysInMonth = DateAdd("m", 1, dteInput) - dteInput
End Function
__________________
* Antes de preguntar lee las FAQ, y por favor no hagas preguntas en las FAQ
Sitio http://www.geoavila.com twitter: @GeoAvila