I don't understand the problem. Where does NHibernate "generate a date
format"? You should have a DateTime in the entity and a date in the
database. Dates in queries should be passed as parameters, not as
strings. Doesn't this work?

On 19 Jan., 16:38, "[email protected]"
<[email protected]> wrote:
> Is there a way to force hibernate to generate a non-locale-specific
> date format so I can insert dates without worrying about if they are
> interpreted as US/UK english?
>
> At the moment they are being sent as text i.e. '06/07/2008
> 12:14:00'.
>
> Unfortunately some muppet set up our DB and web servers with different
> locales so 06/07 is ambiguous (US English SQL Server 2005 server, UK
> English Windows 2008 client).
>
> Using NH 2.0.1 as bundled by spring.net 1.2.0, mssql2005 dialect and
> sqlserver-2.0 provider.
>
> Any help appreciated.
>
> Cheers,
>
> Chris.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to