date() The date() function provides the ability to build a date and returns a date value formatted mm/dd/yyyy (e.g., 03/31/2021). Syntax date(year, month,...