Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieve time from DateTime field ??
Message
From
24/09/1998 05:37:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00140265
Message ID:
00140269
Views:
25
>Are there any functions to retrieve the time part of a DateTime field so that a data bound control can display only the time part and be modified by a user?
>
>We can't seem to find any such functions, so help is really appreciated...
Klas,
There are a series of functions to get it. Some depend on current date and century settings and some are not affected by the settings (ie: substr(ttoc(ltDatetime,1),9,4) always gives time part as HHMM). From a thread as I remember, someone was seeking for a way to force similar input and automatic adding of AM/PM with keypresses. I think John Koziol (apologize if I remembered the name wrong) has made it into a class and put into files\classes section. Check it also.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform