?
Solved

Date Time Picker

Posted on 2002-05-07
6
Medium Priority
?
144 Views
Last Modified: 2010-04-04
How can I assign date value from a DateTimePicket (kind : dtkDate) with time value from a DateTimePicket (kind : dtkTime) to a TDateTime variable ?

Andrew
0
Comment
Question by:andrewyu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6993548
datetime := trunc(datetimepicker1.date)+datetiempicker2.time;

just from head

meikl ;-)
0
 
LVL 7

Accepted Solution

by:
Motaz earned 400 total points
ID: 6993561
meikl, also you have to trim time portion

datetime := trunc(datetimepicker1.date)+ Fract(datetiempicker2.time);
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6993577
:-) i guessed that also, but i can't check it
(no delphi on hand yet)

but atleast it must be frac and not fract, or?

meikl ;-)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:andrewyu
ID: 6993668
It's done !
Thank you very much !

Andrew
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6993696
seems, i'm lost without delphi on hand :-(
0
 

Author Comment

by:andrewyu
ID: 6993721
Anyway, Thank you very much to you two !!!

Andrew
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question