Yet another US dates problem...

  • This time I'm passing a date parameter to a subreport. This generates an error unless the date is before the 13th of the month. Which means of course that the day and month are getting inverted between the main report and the subreport. Anyone know a getaround?

    BTW, the other US dates problems are:

    - day and month inverted each time you run the report; now fixed in SQL Server 2005 SP1

    - dates entered as explicit (i.e. Non-Queried Available Values) lists for parameters treated as US style dates; reported this but haven't had confirmation from Microsoft yet that this is fixed.

     

  • This was removed by the editor as SPAM

  • Try using CDATE function for formatting the Date Parameter using the expression while passing to the subreport.

     

    Prasad Bhogadi
    www.inforaise.com

  • Thanks, I'll try that. Meanwhile I've formatted it with convert to a yyyymmdd string.

  • Pardon me for piggy-backing on this one, but I am experiencing the same issue.  I get the user to enter a date according to the format dd/mm/yy and then convert it in the dataset query - works fine; but when I try to reference the parameter in the report heading and make it a better looking format such as dd MMM yyyy I get errors.  CDate doesn't work, neither does FormatDateTime (around CDate).  I have tried all manner of things but I am still stumped.  I will be very interested in any resolution for this problem.

    Thanks


    Best Regards
    Terry

  • If you're getting the original US dates problem, it is fixed by installing SS2005 SP1 which includes an update to the report designer.

  • You are right Jon.  I thought I had SP1 installed - but no.  I had downloaded it some time back and then forgot the very important step of actually installing it !!  After installing it I was able to achieve what I wanted.

    All is now well.  Thanks

     


    Best Regards
    Terry

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply