date update

This commit is contained in:
YasinShaikh123
2024-10-07 17:22:51 +05:30
parent 90a433e312
commit bd48e3fb06
3 changed files with 22 additions and 0 deletions

View File

@@ -33,6 +33,14 @@ const DeletionRequest = () => {
const [mouseEntered, setMouseEntered] = useState(false);
const [mouseEnteredId, setMouseEnteredId] = useState("");
const formatDate = (date) => {
return new Date(date).toLocaleDateString("en-GB", {
day: "2-digit",
month: "2-digit",
year: "numeric",
});
};
const {
data,
isLoading: DeletionLoading

View File

@@ -78,6 +78,13 @@ const Notification = () => {
const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
const [currentPage, setCurrentPage] = useState(TABLE_PAGINATION?.page);
const formatDate = (date) => {
return new Date(date).toLocaleDateString("en-GB", {
day: "2-digit",
month: "2-digit",
year: "numeric",
});
};
// const {
// data: investorDetails,

View File

@@ -64,6 +64,13 @@ const ExchangeRate = () => {
console.log(data?.data);
const formatDate = (date) => {
return new Date(date).toLocaleDateString("en-GB", {
day: "2-digit",
month: "2-digit",
year: "numeric",
});
};
const filteredData = data?.data?.filter((item) => {
const name = item?.fromCurrency?.currencyCode;