julian_day

Returns an integer value representing the number of days from January 1, 4712 BC (the start of the Julian date calendar) to the date value specified in "expression". "Expression" can be a date value or a string representation of a date.

Syntax

julian_day ( expression )

Example

julian_day ( '2009-06-29' )

Result

2455012.22130739595741034