This commit is contained in:
@@ -20,6 +20,15 @@ public partial class Ventas_SolicitudesSAT : ClsPaginas
|
||||
string rfSolInicio = Request["fSolInicio"] == null ? "" : Request["fSolInicio"].ToString().Trim();
|
||||
string rfSolFin = Request["fSolFin"] == null ? "" : Request["fSolFin"].ToString().Trim();
|
||||
|
||||
if (rfIngInicio == "")
|
||||
{
|
||||
rfIngInicio = string.Format("{0:01/MM/yyyy}",DateTime.Now);
|
||||
}
|
||||
if (rfIngFin == "")
|
||||
{
|
||||
rfIngFin = string.Format("{0:dd/MM/yyyy}",string.Format("{0:01/MM/yyyy}", DateTime.Now).ToDateTime().AddMonths(1).AddDays(-1));
|
||||
|
||||
}
|
||||
DateTime dValor = DateTime.Now;
|
||||
dValor = DateTime.Now; if (DateTime.TryParse(rfIngInicio, out dValor)) { rfIngInicio = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfIngInicio = ""; }
|
||||
dValor = DateTime.Now; if (DateTime.TryParse(rfIngFin, out dValor)) { rfIngFin = string.Format("{0:dd/MM/yyyy}", dValor); } else { rfIngFin = ""; }
|
||||
|
||||
Reference in New Issue
Block a user