D
Doug Swanson
We have as ASP.NET application that hits a SQL Server database. When I
change the culture info from 'en-US' to 'es-MX' my code that queries the
database fails....I've set my dateform to dmy on the sqlserver side....my
sql code that goes up to the db looks like this...
select...
from x
where x.start_dt > '29/10/04 12:00:00 a.m.'
It chokes on the 'a.m.'....if I change the text to 'AM' then it is
fine....is there some thing I'm missing in my vb.net code? Basicly I'm
building the sqlstring on the fly
Dim sSQL as string
sSQl = "select .. from x where x.start_dt > '" + mydate.toString() + "'"
How do I force a 24 hour clock display?
thanks
Doug
--
Doug Swanson
Senior Applications Developer
Synchrono, Inc
651.228.1772
(e-mail address removed)
change the culture info from 'en-US' to 'es-MX' my code that queries the
database fails....I've set my dateform to dmy on the sqlserver side....my
sql code that goes up to the db looks like this...
select...
from x
where x.start_dt > '29/10/04 12:00:00 a.m.'
It chokes on the 'a.m.'....if I change the text to 'AM' then it is
fine....is there some thing I'm missing in my vb.net code? Basicly I'm
building the sqlstring on the fly
Dim sSQL as string
sSQl = "select .. from x where x.start_dt > '" + mydate.toString() + "'"
How do I force a 24 hour clock display?
thanks
Doug
--
Doug Swanson
Senior Applications Developer
Synchrono, Inc
651.228.1772
(e-mail address removed)