R
Rob Meade
Hi all,
Ok - firstly - I love the states, would love to go there again soon - the
one thing I dont want though are my dates all muddled up on my web page ;o)
My laptop is configured correctly for UK/English, for everything, keyboard,
regional, language - SQL is set up as such also, the only thing thats
changed recently was the installation of .Net 2.0. When I run my
application a date that is being pulled out of my database keeps appearing
as mm/dd/yyyy (plus the time bits on the end)...
I've tried adding :
Culture = "en-GB"
in my base class...no difference..
I've tried adding:
Culture = "en-GB"
in the @page reference at the top of the html
I've even thrown a CONVERT around the date field in the stored procedure
used to grab it out of the database...
CONVERT(datetime, FirstDateTime, 113) AS FirstDateTime
and STILL it appears as mm/dd/yyyy (and the time bits)..
Can anyone advise me as to whether there is an overriding setting perhaps in
VS2005, or some such which might be causing this....obviously I could spend
the evening writing code to change it all around but I would have thought
that at least ONE of hte above methods might have resolved the problem!
Any help would be really appreciated.
Thanks
Rob
Ok - firstly - I love the states, would love to go there again soon - the
one thing I dont want though are my dates all muddled up on my web page ;o)
My laptop is configured correctly for UK/English, for everything, keyboard,
regional, language - SQL is set up as such also, the only thing thats
changed recently was the installation of .Net 2.0. When I run my
application a date that is being pulled out of my database keeps appearing
as mm/dd/yyyy (plus the time bits on the end)...
I've tried adding :
Culture = "en-GB"
in my base class...no difference..
I've tried adding:
Culture = "en-GB"
in the @page reference at the top of the html
I've even thrown a CONVERT around the date field in the stored procedure
used to grab it out of the database...
CONVERT(datetime, FirstDateTime, 113) AS FirstDateTime
and STILL it appears as mm/dd/yyyy (and the time bits)..
Can anyone advise me as to whether there is an overriding setting perhaps in
VS2005, or some such which might be causing this....obviously I could spend
the evening writing code to change it all around but I would have thought
that at least ONE of hte above methods might have resolved the problem!
Any help would be really appreciated.
Thanks
Rob