Skip to main content

DATE_DIFF_STR

Difference between two dates in days, when the inputs are string

Example Usage

DATE_DIFF_STR("2021-08-30", "2021-09-04")

Overview

Function signature
DATE_DIFF_STR(date1, date2)

Category
Date

Return data type
int

Arguments

NameDataTypeList Options                          Description
date1stringDate value to start with
date2stringEnding date (subtract date1 from date2)