Date() is a function that returns a date. When working with dates, the most fundamental function we employ is as. Date() is a function that returns a date. In R programming, we can use this function to construct a date value (without the time). Through the format = option, it also allows for a variety of date value input formats.