Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time display
Message
De
23/05/2013 01:57:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01574527
Message ID:
01574562
Vues:
80
>Hi everybody,
>
>I am wondering how can I display datetime value using
>
>mm/dd/yyyy hh:mm:ss format where hours are in 24 format? Using transform(datetime()) returns date with AM/PM settings. Also, I may want to display it just up to hh:mm (no seconds).
>
>Any ideas?
>
>Thanks in advance.
PUBLIC oform1

oform1=NEWOBJECT("form1")
oform1.Show
RETURN

DEFINE CLASS form1 AS form

	ADD OBJECT text1 AS textbox WITH ;
		DateFormat = 1, ;
		DateMark = "/", ;
		Hours = 24, ;
		Seconds = 0, ;
		ControlSource = "(DATETIME())", ;
		Height = 23, ;
		Left = 72, ;
		Top = 72, ;
		Width = 228

ENDDEFINE
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform