Re: formatting date field
bb_43_at_hotmail.com
Date: 04/30/04
- Previous message: Jarod_24: "formatting date field"
- In reply to: Jarod_24: "formatting date field"
- Next in thread: Lahoty: "Re: formatting date field"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 30 Apr 2004 23:56:31 GMT
In article <ab57978db3accbc72020a324f2e8a984@news.teranews.com>, "Jarod_24" <jarod_24@hotmail.com> wrote:
>How do i format a DateTime file in a sql-query?
>
>I got a sql sentence like this:
>
>"SELECT Name, DateRegistered
> FROM Customer;"
>
>The "DateRegistered" field comes out as "2004-05-10T00:00:00.0000000+02:00"
>I need it as "DD.MM.YYYY".
>
>Is there any function that i can use, like "DateFormat" in the sql sentence?
>
>Like This?
>"SELECT Name, DateFormat(DateRegistered,"DD.MM.YYYY") As DateRegistered
> FROM Customer;"
>
>
Select Convert(varchar(10),Dateregistered,XXX)
Where xxx is the appropriate value. See BOL on Convert for the table.
- Previous message: Jarod_24: "formatting date field"
- In reply to: Jarod_24: "formatting date field"
- Next in thread: Lahoty: "Re: formatting date field"
- Messages sorted by: [ date ] [ thread ]
Loading