CodeForPhilly / prevention-point

Current Functional Product
MIT License
30 stars 15 forks source link

locale string component/ helper fn #474

Open MikeyManoguerra opened 3 years ago

MikeyManoguerra commented 3 years ago
  <PrevPointCopy>Visit Date: {new Date(visitData.created_at).toLocaleDateString(
                "en-US",
                {
                  year: "numeric",
                  month: "2-digit",
                  day: "2-digit",
                  timeZone: "UTC", 
                })}</PrevPointCopy>

this occurs similarly in several places. make a component to display or a helper fn to generate this. im leaning to towards a component but it doesnt exactly matter