arlc_convert_date_format {arlclustering}R 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")

[Package arlclustering version 1.0.5 Index]