Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format datetime values as dd.mm.yyyy, no time part?
Message
 
À
26/04/2005 09:44:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01008405
Message ID:
01008570
Vues:
17
This works for me
* Put this code in the init event of your textbox

SET DATE TO German
SET CENTURY on

dDate=DATETIME()
This.Value=TTOD(dDate)
This.DateFormat= 4 
>Bill,
>
>I may be doing something wrong here, but setting the textbox format to D does not seem to do much of anything.
>
>I have to set date = german, but that should not influence the format of the textbox, only the format of the date itself.
>
>>>I've been mucking about with input mask and format, all for nothing.
>>>
>>>And no, I can't just TTOD(somefield), so if there is a way to format the textbox to display only the date portion of a datetime field, would you please let me know?
>>>
>>>TIA
>>
>>Peter,
>>
>>I believe that you can set date to American, and set the format of the textbox to "D". That should give you the results you desire.
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform