formatear fechas
This commit is contained in:
@@ -128,8 +128,8 @@ class ShowPlanes extends Component
|
||||
$consulta_tarifas = Tarifas::take(1);
|
||||
|
||||
if (empty($this->fecha_inicial)) {
|
||||
$this->fecha_inicial = Carbon::now()->format('Y-m-d');
|
||||
$this->fecha_final = Carbon::now()->addDay(30)->format('Y-m-d');
|
||||
$this->fecha_inicial = Carbon::now()->toDateTimeString();
|
||||
$this->fecha_final = Carbon::now()->addDay(30)->toDateTimeString();
|
||||
}
|
||||
if ($this->servicio_modTarifas) {
|
||||
$this->tarifas = Tarifas::with('rol')
|
||||
@@ -222,8 +222,9 @@ class ShowPlanes extends Component
|
||||
|
||||
public function calcularFechas()
|
||||
{
|
||||
$this->fecha_inicial_renovar = now()->format('Y-m-d');
|
||||
$this->fecha_final_renovar = now()->addDays(30)->format('Y-m-d');
|
||||
$this->fecha_inicial_renovar = now()->format('Y-m-d H:i:s');
|
||||
$this->fecha_final_renovar = now()->addDays(30)->format('Y-m-d H:i:s');
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user