Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Input mask for datetime field type
Message
From
11/05/1998 23:02:26
 
 
To
11/05/1998 18:10:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00098579
Message ID:
00098652
Views:
32
>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform