diff --git a/frontend/components/Campaigns.tsx b/frontend/components/Campaigns.tsx index 560817a..b1019ad 100755 --- a/frontend/components/Campaigns.tsx +++ b/frontend/components/Campaigns.tsx @@ -26,6 +26,14 @@ import { ExportIcon } from './icons/ExportIcon'; import { XIcon } from './icons/XIcon'; import apiService from '../services/apiService'; +const formatDate = (isoDateString: string): string => { + const date = new Date(isoDateString); + return date.toLocaleDateString('en-US', { + month: 'short', + day: 'numeric', + year: 'numeric' + }); +}; export const initialCampaigns = [ { @@ -347,7 +355,7 @@ const CampaignList: React.FC<{ {campaign.agencyLead} {campaign.agency} - {campaign.lastModified} + {formatDate(campaign.lastModified)} ); })}