1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mdy.Date.R
\name{mdy.Date}
\alias{mdy.Date}
\alias{Date.mdy}
\alias{is.Date}
\title{Convert numeric dates to Date object, and vice versa}
\usage{
mdy.Date(month, day, year, yearcut = 120)
Date.mdy(date)
is.Date(x)
}
\arguments{
\item{month}{integer, month (1-12).}
\item{day}{integer, day of the month (1-31, depending on the month).}
\item{year}{integer, either 2- or 4-digit year. If two-digit number, will add 1900 onto it, depending on range.}
\item{yearcut}{cutoff for method to know if to convert to 4-digit year.}
\item{date}{A date value.}
\item{x}{An object.}
}
\value{
\code{mdy.Date} returns a Date object, and Date.mdy returns a list with integer values for month, day, and year.
\code{is.Date} returns a single logical value.
}
\description{
Convert numeric dates for month, day, and year to Date object, and vice versa.
}
\details{
Test if an object is a date.
More work may need to be done with yearcut and 2-digit years. Best to give a full 4-digit year.
}
\examples{
mdy.Date(9, 2, 2013)
tmp <- mdy.Date(9, 2, 2013)
Date.mdy(tmp)
is.Date(tmp)
}
\seealso{
\code{\link{Date}}, \code{\link{DateTimeClasses}}
}
|