Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange date formatting
Message
From
10/09/2008 06:38:42
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
 
 
To
09/09/2008 19:31:51
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01346235
Message ID:
01346277
Views:
31
Hi Folks,

Thanks to all who replied. All the suggested solutions worked, but I stumbled across a simpler solution, just place the formatting command before the cell is filled, ie.

oWorkSheet.Cells(lnRow,5).NumberFormat = 'dd/mm/yy'
oWorkSheet.Cells(lnRow,5).value = MyDateField

Strange, but it works!

Thanks,
Alan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform