Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29244 Discussions

How to get year, month and day information from DateTimePicker control with IVF8.0?

xianyao-chen
Beginner
621 Views
Hi,
Could anyone help me to get year, month and day information from DateTimePicker dialog control with IVF8.0 while without changing system time?

thanks in advance.

Yao
0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
621 Views

If you're using DFLOGM:

USE DFWIN

TYPE(T_SYSTEMTIME):: ST

i = DlgSendCtrlMessage(Dlg, IDC_DATETIME, DTM_GETSYSTEMTIME, 0, LOC(ST))

SYSTEMTIME structure contains the information about selected date.
This code must be called while the dialog is active, e.g.in a callback for OK button or in a DLG_DESTROY callback. See also DTM_SETSYSTEMTIME, DTM_SETFORMAT.
Jugoslav
0 Kudos
Reply