How to display the time format of dbdatetimeediteh

Source: Internet
Author: User

1. How to display the data time format of dbdatetimeediteh?
Adequacy: kind = dtkdatetimeeh; you can see the adequacy.
Editformat = "yyyy/mm/dd hh: NN: SS"
Because dbdatetimeediteh has no time to choose, the time is "00:00:00 ",
Only the start time of the notebook;
If you want to get the instant time, you can use the dbdatetimeediteh. onchange event to implement it;
For example
Procedure tfrm_processpara.dbdatetimeediteh1change (Sender: tobject );
// Master_dataset.fieldbyname ('order _ date'). asvariant: =
Dbdatetimeediteh2.text: =
Formatdatetime ('yyyy/MM/dd', dbdatetimeediteh1.value) + ''+
Formatdatetime ('hh: NN: ss', now );;
Description: dbdatetimeediteh1.kind = dtkdateeh (system silence)
Dbdatetimeediteh2.kind = dtkdatetimeeh;
Dbdatetimeediteh2.datasource = "Your datasource name ";
Dbdatetimeediteh2.datafield = "your data field name"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.