arlc_convert_date_format: Convert a Date to a Different Format

View source: R/arlc_utils.R

arlc_convert_date_formatR Documentation

Convert a Date to a Different Format

Description

This function converts a date from one format to another.

Usage

arlc_convert_date_format(date_str, from_format, to_format)

Arguments

date_str

A date string.

from_format

The current format of the date string.

to_format

The desired format of the date string.

Value

The date string in the new format.

Examples

arlc_convert_date_format("2023-01-01", "%Y-%m-%d", "%d-%m-%Y")

assuom44/arlclustering documentation built on Sept. 27, 2024, 6:05 p.m.