Hi all
I am having a problem with how the DATE field of a column is being displayed. What I am trying to do is run a DTS that takes the info from a table and places it into a flat file. Of course the format of the flat file does not need the trailing 23:59:59.993. When running a view it gives us the proper format of mm/dd/yyyy but the rest is not being shown in the view. A Cast function in the view into a VARCHAR changes it to something like Oct, 10, 2006. And of course the LEFT function comes up with the same Oct, 10, 2006 format.
How would I tell SQL server to just grab just 10/06/2006 and nothing else or without it trying to change it to a different format?
ThanksLook up the Convert function in BOL. There are a number of formats to display a date in.|||Wonderful, thanks!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment