Skip to contents

Format date in the Norwegian format

Format datetime in the Norwegian format

Format datetime in a file format

Usage

format_date_as_nor(x = lubridate::today(), format = "%d.%m.%Y")

format_datetime_as_nor(
  x = lubridate::now(),
  format = "%d.%m.%Y kl. %H:%S"
)

format_datetime_as_file(x = lubridate::now(), format = "%Y_%m_%d_%H%M%S")

Arguments

x

Datetime

format

The desired format

Value

A character vector

A character vector

A character vector