Solved

Date Time Picker

Posted on 2002-05-07
6
137 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
Comment Utility
datetime := trunc(datetimepicker1.date)+datetiempicker2.time;

just from head

meikl ;-)
0
 
LVL 7

Accepted Solution

by:
Motaz earned 100 total points
Comment Utility
meikl, also you have to trim time portion

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

Expert Comment

by:kretzschmar
Comment Utility
:-) 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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:andrewyu
Comment Utility
It's done !
Thank you very much !

Andrew
0
 
LVL 27

Expert Comment

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

Author Comment

by:andrewyu
Comment Utility
Anyway, Thank you very much to you two !!!

Andrew
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now