improved view of products
This commit is contained in:
@@ -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}`;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user