quitar la hora de entrega
This commit is contained in:
parent
9da9c79ab8
commit
32b1ffecb0
|
@ -112,7 +112,7 @@ export function useCheckoutForm() {
|
||||||
const getFormatedDate = (date) => {
|
const getFormatedDate = (date) => {
|
||||||
if(date){
|
if(date){
|
||||||
let dated = new Date(date.replace('Z', ''));
|
let dated = new Date(date.replace('Z', ''));
|
||||||
return `${dated.toLocaleString('es-ES', { day: "numeric" })} de ${dated.toLocaleString('es-ES', { month: "short" })} - De 10h - 12h`;
|
return `${dated.toLocaleString('es-ES', { day: "numeric" })} de ${dated.toLocaleString('es-ES', { month: "short" })}`;
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue