Loading lesson path
The most difficult part when working with dates in databases, is to be sure that the format of the date you are trying to insert/select, matches the format of the date column in the database.
Different SQL databases have various data types to store date and time values.
has the following date data types:
Formula
- format YYYY - MM - DDFormula
- format: YYYY - MM - DD HH:MI:SSFormula
- format: YYYY - MM - DD HH:MI:SSFormula
- format YYYY - MM - DDFormula
- format: YYYY - MM - DD HH:MI:SSFormula
- format: YYYY - MM - DD HH:MI:SSThe date data type are defined for a column upon creation of a new table in your database.
Formula
2025 - 11 - 11Formula
2025 - 11 - 09Formula
2025 - 11 - 11Formula
2025 - 10 - 29
Now we want to select the records with an OrderDate of "2025 - 11 - 11" from the table above.