Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date format problem
Message
 
 
À
08/12/2011 23:09:20
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01530701
Message ID:
01530710
Vues:
57
Excel doesn't now and doesn't care what date format is set in VFP. You shoul use unambiguous date format like YYYY-MM-DD. Formating how dates are displayed in Excel is different story.

>I have store a date value in a excel worksheet use dd-mmm-yyyy' format
>it should be 8 Dec 2011, but the result give me 12 Aug 2011 in the cell
>
>Why ?
>
>
>SET DATE TO DMY
>oExcel.activesheet.Range("C2").NumberFormat ='dd-mmm-yyyy'   
>oExcel.activesheet.Range("C2").value = "08/12/2011"   
>
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform