+ - 0:00:00
Notes for current slide
Notes for next slide
00:05

DATES


TIME

Step 1

Become a date

YYYY

MM

DD

Convert "text" to DATE


Format Function to use
Month-Day-Year ~ "05-18-2023" or "05/18/2023" mdy(date)
Day-Month-Year (Euro dates) ~ "18-05-2023" or "18/05/2023" dmy()
Year-Month-Day (Science dates) ~ "2023-05-18" or "2023/05/18" ymd()
Year-Month-Day Hour:Minutes:Seconds ~ "2023-05-18 8:35:22 AM" ymd_hms()

Real world dates


Month-Day-Year dates

Format Function to use
"05/18/2023 " mdy(date)
"May 18, 2023 " mdy(date)
"05/18/2023 8:00 CDT " mdy_hm(date, tz ="US/Central")
"05/18/2023 11:05:32 GMT " mdy_hms(date, tz ="GMT")

Real world dates


European dates

Format Function to use
"18-05-2023" dmy(date)
"18/05/2023" dmy(date)

Real world dates


No nonsense dates

Format Function to use
"20230518" ymd(date, tz ="US/Central")
"202305180630" ymd_hm(date, tz ="US/Central")

Step 2

Sort your components

Date components

Function to use Date component
year(date) Year
month() Month: 1, 2, 3; Use label=TRUE for Jan, Feb, Mar
day() Day of the month
wday() Day of the week: 1, 2, 3; Use label=TRUE for Sun, Mon, Tue
- Time -
hour() Hour of the day (24hr)
minute() Minutes
second() Seconds
tz() Time zone

Step 3

Show your style

[Stamp] your dates


report_style <- stamp_date("Reported on December 15th, 2023")

[Stamp] your dates


report_style <- stamp_date("Reported on December 15th, 2023")
new_date <- ymd("2024-05-15")

[Stamp] your dates


report_style <- stamp_date("Reported on December 15th, 2023")
new_date <- ymd("2024-05-15")
report_style(new_date)

[Stamp] your dates


report_style <- stamp_date("Reported on December 15th, 2023")
new_date <- ymd("2024-05-15")
report_style(new_date)

"Reported on May 15th, 2024"

MONSTERS EVERYWHERE!

Cartoon of a bunch of monsters watching data points of varing color and shape fly across a screen like fireworks. Several monsters are lighting the data off like fireworks.

MONSTERS EVERYWHERE!

Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow