Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB to Excel Date Transfer

Status
Not open for further replies.

OC2

IS-IT--Management
Apr 2, 2001
59
0
0
SG
For some reason every time I Transer a date stored in a variable over to Excel, it changes the date around but keeps the dd/mm/yyyy, for example, 3rd of october 2004 would send from vb as 03/10/2004, but in excel will display as 10th march 2004 10/03/2004. Is this a known issue? can it be solved? any help would be much apprieciated.
 
Check the regional settings in Office itself. It would appear you have US date time set in office.

Office uses its own settings rather than the machine locale, which VB would use.

VBrit

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top