Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP date to MS Excel
Message
From
06/05/2008 08:55:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
06/05/2008 07:52:01
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01315283
Message ID:
01315298
Views:
11
>hi all,
>
>when i export (through OLE) a vfp6 cursor with data to an MS Excel spreadsheet file, some dates like 5th Mar, 2008 get displayed as 03-May-2008 (the date and month get interchanged always)
>
>why does this happen ? and, how can i prevent this from happenning ?
>
>with sincere thanks in advance.

And what happens when the day is > 12?

It looks as if different date formats get mixed-up. Take a look at the command SET DATE - it may help to change it before exporting.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform