Results 1 to 3 of 3

Thread: Date format problem

  1. #1
    Join Date
    Dec 2003
    Posts
    140

    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

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    Yes, possible. Check 'CAST and CONVERT' and 'SET DATEFORMAT' in sql books online.

  3. #3
    Join Date
    Dec 2003
    Posts
    140
    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
  •