Home > Microsoft | SQL | Work > Date Formatting In SQL

Date Formatting In SQL

image

I got a request for a report the other day so I built this massive 90 line SQL statement to pull all the data requested. So I sent off a copy of the data report and the guy tells me that he needs the date formatted (YYYYMMDD) instead of (YYYY-MM-DD-HHMMSS) and then he was like is that going to be a problem and I was like ha not really. Give me a moment and I’ll send you a simple. Since I can’t remember the correct expression I did a quick Google search and came across this awesome page http://anubhavg.wordpress.com/2009/06/11/how-to-format-datetime-date-in-sql-server-2005/ covering exactly what I was looking for.

Comments:1

Leave a Reply
  1. webmaster
    11/05/04

    Great Writing. I Found your article to be quite informative.I
    would love to view this website again as and when you update.

    Mean while I do have a website which contains some information on
    SQL Online Training .

    Do visit our website whenever you find time.

    Thanks
    Webmaster

    SQL Online Training

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackbacks:0

Listed below are links to weblogs that reference
Date Formatting In SQL from Just A Bunch Of Gogorichie
TOP
Stop SOPA