Pregunta: | 7247 - COMO CONFIGURAR LA HORA Y FECHA |
Autor: | Guillermo Contreras Gomez |
Si hay alguien que sepa como configurar la fecha y hora desde visual basic se lo agradeceré. |
Respuesta: | José Ariel Limandri |
Podria complicartela diciendote que uses esta API
Public Declare Function SetSystemTime Lib "kernel32" Alias "SetSystemTime" (lpSystemTime As SYSTEMTIME) As Long Public Type SYSTEMTIME wYear As Integer wMonth As Integer wDayOfWeek As Integer wDay As Integer wHour As Integer wMinute As Integer wSecond As Integer wMilliseconds As Integer End Type Pero si la queres mas facil hace lo siguiente private sub SetSysDate(Fecha as date) date=datevalue(fecha) time=timevalue(fecha end sub cualquier duda mandame un mail |