Learn R Programming

TLBC (version 1.0)

getDateFmt: Get date format

Description

Function to guess the date format from an input string

Usage

getDateFmt(inputString)

Arguments

inputString
String containing a date formatted either as yyyy-mm-dd HH:MM:SS or mm/dd/yyyy HH:MM:SS

Value

A date format string, either "%Y-%m-%d %H:%M:%S" or "%m/%d/%Y %H:%M:%S"