postDay

tcmts.site.postDay · #63lnldrr · function · runs anywhere

A post's day as the blog shows it: 2026-11-07 is 7 November 2026.

export const postDay = (date: string): string =>
  new Date(`${date}T00:00:00Z`).toLocaleDateString("en-GB", {
    day: "numeric",
    month: "long",
    year: "numeric",
    timeZone: "UTC",
  })

used by