Home » SQLite juliandday

SQLite juliandday

by Online Tutorials Library

SQLite Julianday Function

The SQLite julianday function facilitates you to apply modifiers and then returns the date as a Julian Day after taking the date as an input.

A Julian Day is the number of days since Nov 24, 4714 BC 12:00pm Greenwich time in the Gregorian calendar. The julianday function returns the date as a floating point number.

Syntax:

Example1: Retrieve current date:

Output:

SQLite Julianday function 1 SQLite Julianday function 2 SQLite Julianday function 3 SQLite Julianday function 4

Example2: Retrieve First Day of the Month:

Output:

SQLite Julianday function 5 SQLite Julianday function 6 SQLite Julianday function 7 SQLite Julianday function 8

Example2: Retrieve Last Day of the Month:

Output:

SQLite Julianday function 9 SQLite Julianday function 10 SQLite Julianday function 11 SQLite Julianday function 12

Example3: Add/ subtract years/ days on the current date:

Output:

SQLite Julianday function 13 SQLite Julianday function 14 SQLite Julianday function 15


Next TopicSQLite Now

You may also like