TechTalkz.com Logo Ask the Expert

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > VB.NET

Notices

Why date is changed for no reason?

VB.NET


Reply
 
Thread Tools Display Modes
Old 14-12-2007, 10:24 PM   #1
clara
Guest
 
Posts: n/a
Why date is changed for no reason?

Hi all,

I just retrieve a date field into a texbox, but the date has changed when it
is read from database. The database is designed by others,I not sure whether
there is something wrong in database or in coding?

Clara


--
thank you so much for your help
  Reply With Quote
Old 14-12-2007, 10:25 PM   #2
Andrew Morton
Guest
 
Posts: n/a
Re: Why date is changed for no reason?

clara wrote:
> I just retrieve a date field into a texbox, but the date has changed
> when it is read from database. The database is designed by others,I
> not sure whether there is something wrong in database or in coding?


Can you give us an example of the date change?

I suspect it is because somewhere something uses dates in a format like
MMddyy and elsewhere dates are expected to be in a ddMMyy format.

If it's an Access database, then you can use Locale Identifier in the
connection string, e.g. for en-gb
"driver={Microsoft Access Driver (*.mdb)};DBQ=C\mydatabase.mdb;Locale
Identifier=2057"

Andrew


  Reply With Quote
Reply

Thread Tools
Display Modes



< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT +5.5. The time now is 03:13 AM.


vBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2010, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional