#include // para el clock time_t Vtime_tTimFecAct = 0; // Para obtener la fecha del día struct tm *VstructStrHoy; // Para calcular la fecha // obtener la fecha del dia Vtime_tTimFecAct = time( NULL ); // obtener la fecha y hora actual VstructStrHoy = localtime( &Vtime_tTimFecAct ); // convertir a la fecha local VstructStrHoy->tm_year + 1900L // Año actual VstructStrHoy->tm_mon + 1L // Mes actual de 1 a 12 VstructStrHoy->tm_mday // Día actual