2024-02-19 16:27:24 +00:00
|
|
|
export default function toDateHourMin(date) {
|
2025-01-09 08:00:29 +00:00
|
|
|
if (!date) return date;
|
|
|
|
return new Date(date).toLocaleDateString('es-ES', {
|
2023-08-16 07:03:41 +00:00
|
|
|
timeZone: 'Europe/Madrid',
|
|
|
|
year: 'numeric',
|
|
|
|
month: '2-digit',
|
|
|
|
day: '2-digit',
|
|
|
|
hour: '2-digit',
|
|
|
|
minute: '2-digit',
|
|
|
|
});
|
|
|
|
}
|