Formats dates and datetimes with Norwegian conventions, or with a filename-safe format.
See also
format_date_as_journal gives the ISO 8601 equivalents.
The "Norwegian date format" section of vignette("csstyle")
demonstrates all three functions on this page.
Examples
# Format current date/time using Norwegian conventions
format_date_as_nor()
#> [1] "06.08.2026"
format_datetime_as_nor()
#> [1] "06.08.2026 kl. 09:50"
# Format specific dates
format_date_as_nor(as.Date("2023-12-25"))
#> [1] "25.12.2023"
format_datetime_as_file(as.POSIXct("2023-12-25 14:30:00"))
#> [1] "2023_12_25_143000"
