-
Date format problem
I am using a view which brings purchase related data from my OLTP.
I am using the same view for the source of my production system (which has a mm/dd/yy format) and for my test machine (which has a dd-Mmm-yy format).
By formats I mean theformatsdefinedvia theRegional settings.
The problem is that on the test machine, the dates are giving problems and a date such as today's (i.e. 10, March, 2005) is coming in as 03-October, 2005) - notice that this is due to the data format difference i.e. 03/10/05 versus 10-Mar-05 (or 10/03/05).
Any ideas how I can use the same view but for my test machine I do some sort of conversion to correctly change the format.
Many TIA
-
Yes, possible. Check 'CAST and CONVERT' and 'SET DATEFORMAT' in sql books online.
-
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|