Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Input mask for datetime field type
Message
De
11/05/1998 23:02:26
 
 
À
11/05/1998 18:10:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00098579
Message ID:
00098652
Vues:
33
>>>>Can anyone tell me how to format a date time field in the inputmask so the user doesn't have to enter seconds in the time value?
>>>>
>>>>Thanks!
>>>>
>>>>Sylvia
>>>
>>>Why are they entering a datetime? That notwithstanding, why not default the value to current datetime and then allow them to change that?
>>
>>I want to use the value to set dates and times for events for a conference program I'm writing, e.g. 10/10/98 9:00 A.M. The events will be in a lookup table so that we can print an agenda for people attending the conference.
>
>And you want this as 1 field I'm assuming.....ok, here goes.
>
>Personally, I'd make them separate data entry fields and build the 'datetime' field. Then it really won't matter, Fox will fill in :00 for the seconds.


SET SECONDS OFF should help. Note that this one is scoped to the current data session so it goes in your form load or somewhere similar.

Bob
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform