From 22b4cccf83c0393c3808a15c7ef5e1cf596f455a Mon Sep 17 00:00:00 2001 From: rrene Date: Mon, 19 Dec 2022 12:18:25 -0700 Subject: [PATCH] -- mejora en fecha --- AF/RepDepreciacion.aspx.vb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AF/RepDepreciacion.aspx.vb b/AF/RepDepreciacion.aspx.vb index c78d0f4e3..7f54bd884 100644 --- a/AF/RepDepreciacion.aspx.vb +++ b/AF/RepDepreciacion.aspx.vb @@ -4,6 +4,9 @@ Option Strict On Imports System.Data Imports Microsoft.Reporting.WebForms Imports Extensiones +Imports DocumentFormat.OpenXml.Wordprocessing +Imports System + Partial Class AF_RepDepreciacion Inherits ClsPaginas @@ -13,7 +16,7 @@ Partial Class AF_RepDepreciacion #End Region Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load If Not Page.IsPostBack Then - txtFechaI.Text = New Date(Now.Year, Now.Month + 1, 1).AddDays(-1).ToString("dd/MM/yyyy") + txtFechaI.Text = DateTime.Now.AddMonths(1).AddDays(-1).ToString("dd/MM/yyyy") End If End Sub