Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Separate date and time from Datetime field
Message
From
12/07/2018 13:14:52
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01661124
Message ID:
01661130
Views:
51
>>>Hi,
>>>
>>>How do you separate the date and time from the DateTime field so that each part (date and time) can be bound to a different control?
>>>
>>>E.g. I have a date pick control that I want to bind to the date part of the DateTime field. This one is simple.
>>>And I have another control, based on VFP spin control, that I can bind to a Time. And the Time would be in the format as HH:MM. But how do I get the Time portion from the DateTime field? So that when a user changes the time via the time pick control, it updates the DateTime field?
>>>
>>>TIA
>>
>>Why don't you simply press F1?
>
>The help - at least on the surface - does not give me the answer. I know how to get the Hour or Min or time from the DateTime field. But how do I bind this portion (hour:min) to a control so that when the user changes value in the control, the value in the time portion of the bound field changes too?
>
>UPDATE. I should have explained better that I am trying to bind just the Time portion of the DateTime field to a control.

You can't bind just the time portion. You'll have to save it to a property, bind that, and then use code to stuff it back in.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform