CodeForPhilly/prevention-point

locale string component/ helper fn

Opened this issue · 0 comments

  <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