Skip to content
 

SQL Cast Date

You are currently browsing comments. If you would like to return to the full story, you can read the full entry here: “SQL Cast Date”.

7 Comments

  1. suhas says:

    how to insert current date in table. in sql server 2005

  2. mostafa says:

    very nice
    Tank’s

  3. saboor says:

    I have a problem
    I have a datetime and i need the date to specific format

    so I just casted datetime to time
    SELECT CAST (GETDATE() AS DATE)

    and for formatting i use convert
    SELECT CONVERT(DATE,CAST (GETDATE() AS DATE),105)

    but, the result of both is same,

    convert is not working formating

  4. Kosta Masalov says:

    Exactly what I was looking for, thanks!

  5. INal says:

    Thanks you. This is most helpful.

  6. Dom says:

    Thanks, perfect exactly what I need to Know

  7. WILLIAM says:

    thanks for the effort

post a comment OR Post Your Question on our ASK! Community!