Wrox Programmer Forums
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2004, 04:02 PM
Authorized User
 
Join Date: Nov 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default date format change

Hi All,
my DTS give me this date format when executed :
2003-11-02 00:00:00

is it possible to change it to 2.11.2003 ? i mean on DTS execution.

same question for numbers:
i have 200.23 and i want to change it to 200,23

Thank you very much

Yuval
[email protected]

Yuval Kronenfeld
Web Developer
__________________
Yuval Kronenfeld
Israel
 
Old March 29th, 2004, 04:27 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Where is the dat coming from? If it is returned by a SELECT query for example you can use the CONVERT function to format it in any number of ways.

--

Joe
 
Old March 29th, 2004, 05:14 AM
Authorized User
 
Join Date: Nov 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi again,

im using the following
SELECT CONVERT(smalldatetime, create_date, 4) AS test, *
FROM dbo.invoices

but i still get the date unformated (i tried several styles)

am i doing something wrong ?
it doesnt seem to have a formatting effect but it also doesnt throw an error





Similar Threads
Thread Thread Starter Forum Replies Last Post
CHANGE DATE FORMAT Vision G Access VBA 2 April 8th, 2008 12:16 PM
Change default date parameter format JeffHickman Reporting Services 0 February 14th, 2006 06:52 AM
how to change date format prasannagps Forum and Wrox.com Feedback 2 September 14th, 2005 01:28 PM
need to change date format desprate Access VBA 1 April 10th, 2005 12:45 PM
Change date format Patrick19 Classic ASP Basics 1 March 14th, 2005 06:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.