About 1,400,000 results
Open links in new tab
  1. How to create a Date in SQL Server given the Day, Month and …

    Feb 23, 2016 · Several are provided in answers to "Create a date with T-SQL". A notable example involves creating the date by adding years, months, and days to the "zero date".

  2. Date Functions in SQL Server and MySQL - W3Schools

    The most difficult part when working with dates is to be sure that the format of the date you are trying to insert, matches the format of the date column in the database.

  3. How to Specify a Date Format on Creating a Table and

    Jul 23, 2025 · Specifying a date format while creating and populating a table in SQL is essential for maintaining data consistency and avoiding errors. By using commands like SET …

  4. date (Transact-SQL) - SQL Server | Microsoft Learn

    Datetime data types allow dates in the Gregorian format to be stored in the date range 0001-01-01 CE through 9999-12-31 CE. The default string literal format, which is used for down-level …

  5. SQL Server Date and Time Functions with Examples

    Dec 31, 2024 · SQL Server has several different date and time functions and trying to remember every function is not that easy. So, I put together this tutorial that shows the different date and …

  6. SQL Server Insert Date

    May 19, 2025 · In this comprehensive article, I’ll cover everything you need to know about inserting dates into SQL Server, from the basics to advanced techniques that I have learned …

  7. SQL Date and Time (With Examples) - Programiz

    Here, the date_of_birth, last_login, and registered_at columns in the Users table are specified to have the DATE, DATETIME and TIMESTAMP data types respectively. Working with date and …

  8. SQL Dates and Times - Tutorial Republic

    In this tutorial you will learn how to work with dates and times in SQL. Along with strings and numbers, you often need to store date and/or time values in a database, such as an user's …

  9. DATESQL Tutorial

    Apr 30, 2023 · For example, if you want to create a table named “orders” with columns for order ID, customer name, and order date, you could use the following SQL statement: order_id INT …

  10. Create a date from day month and year with T-SQL

    I am trying to convert a date with individual parts such as 12, 1, 2007 into a datetime in SQL Server 2005. I have tried the following: but this results in the wrong date. What is the correct …