Solved

Date Time Picker

Posted on 2002-05-07
6
139 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
  • 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 100 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 276
HTML text in the body of an email (delphi code) 12 122
creating threads in delphi 1 109
Dev express lookupcombo 3 30
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 ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

831 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