General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only