Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding time drom a datetime field to another fild
Message
From
28/10/2016 09:14:44
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01642436
Message ID:
01642437
Views:
57
>I have 2 datetime fields
>
>The first contains a date only
>
>The second contains a date and time - the date is wrong but the time is correct
>
>How do I add the time portion of field 2 to field 1
>
>field 1 date 28/10/2016 00:00:00 I need this field to be 28/10/2016 14:31:00
>
>field2 date 30/12/1899 14:31:00
>
>How can I do this?
REPLACE field1 WITH field1 + (field2 - TTOD(field2))
Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform