Add: Formato DD-MM-YYYY para fechas de ingreso

This commit is contained in:
2026-04-13 12:04:57 -03:00
parent 2402a90cb2
commit 9673694fa0
5 changed files with 18 additions and 4 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import { Label } from '@/components/ui/label';
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from '@/components/ui/dialog';
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
import type { Internacion, Paciente, Cama, Area, Evolucion, Laboratorio, Cultivo } from '@/types';
import { formatDateDDMMYYYY } from '@/lib/utils';
interface InternacionesProps {
internaciones: Internacion[];
@@ -333,7 +334,7 @@ export function Internaciones({
</div>
<div className="flex items-center gap-2 text-gray-600">
<Calendar className="h-4 w-4" />
<span>Ingreso: {internacion.fechaIngreso}</span>
<span>Ingreso: {formatDateDDMMYYYY(internacion.fechaIngreso)}</span>
</div>
<div className="flex items-center gap-2 text-gray-600">
<Stethoscope className="h-4 w-4" />