improved view of products

This commit is contained in:
2026-05-27 10:26:43 +02:00
parent d996fff0db
commit 8ac83520a9
2 changed files with 42 additions and 2 deletions
+8
View File
@@ -39,3 +39,11 @@ export const getProductDetails = async (uuid: string) => {
return response.data;
}
};
export const formatDate = (isoString: string) => {
const date = new Date(isoString);
const day = String(date.getDate()).padStart(2, "0");
const month = String(date.getMonth() + 1).padStart(2, "0");
const year = date.getFullYear();
return `${day}.${month}.${year}`;
};