Creates publication date according to EML standards.

create_pub_date(date = NULL)

Arguments

date

The publication date. If left null, it will be assigned the current date. This can be overridden by putting in a specific date.

Value

A publication date object that can be appended to a dataset or project.

Examples

create_pub_date(date = "2020-08-19")
#> [1] "2020-08-19"
             
# Creates current date:              
create_pub_date() 
#> [1] "2023-08-01"