Let’s use the exibble dataset to create a simple, two-column gt table (keeping only the date and time columns). With fmt_date(), we’ll format the date column to display dates formatted with the "month_day_year" date style.
Again using the exibble dataset, let’s format the date column to have mixed date formats, where dates after April 1st will be different than the others because of the expressions used in the rows argument. This will involve two calls of fmt_date() with different statements provided for rows. In the first call (dates after the 1st of April) the date style "m_day_year" is used; for the second call, "day_m_year" is the named date style supplied to date_style.
Use the exibble dataset to create a single-column gt table (with only the date column). Format the date values using the "yMMMEd" date style (which is one of the ‘flexible’ styles). Also, we’ll set the locale to "nl" to get the dates in Dutch.