public frmABM() { InitializeComponent(); this.selectorFechaNacimiento.MaxDate = (FechaAplicacion.obtenerFechaAplicacion()).AddYears(-18); this.selectorFechaNacimiento.Value = (FechaAplicacion.obtenerFechaAplicacion()).AddYears(-18); this.selectorFechaNacimiento.Format = DateTimePickerFormat.Custom; this.selectorFechaNacimiento.CustomFormat = "dd 'de' MMMM 'de' yyyy"; }
private static DateTime obtenerFechaHora(String hora) { return(DateTime.Parse((FechaAplicacion.obtenerFechaAplicacion()).ToString("dd/MM/yyyy ") + (!hora.Equals("24") ? hora + ":00:00" : "23:59:59"))); }
public frmRendirViaje() { InitializeComponent(); this.selectorDiaRendicionAChofer.MaxDate = FechaAplicacion.obtenerFechaAplicacion(); }
public frmFacturarViaje() { InitializeComponent(); this.selectorFechaFacturacionHasta.MinDate = new DateTime((FechaAplicacion.obtenerFechaAplicacion()).Year, (FechaAplicacion.obtenerFechaAplicacion()).Month, 1); this.selectorFechaFacturacionHasta.MaxDate = FechaAplicacion.obtenerFechaAplicacion(); }
public frmListados() { InitializeComponent(); this.selectorAnio.MaxDate = FechaAplicacion.obtenerFechaAplicacion(); armarComboListados(); }