How To Set Current Date In Date & Time Picker Ocx Control

Pramod Nair

Member
Hi,

I am having trouble with OCX control a lot almost i get solved by ProgressTalk. I am very happy that almost my query has resolved in this forum.
Now my question is, I am trying to set the current date as well as time in Date & Time Picker OCX Control on runtime using chCtrlFram:Value = string (Now) but unable to change the date and to set current time i have no idea.
Please help in this matter.
 

Osborne

Active Member
To set the current date and time:
Code:
chDatePicker:Value = DATETIME(TODAY, MTIME).
To set to be 1 minute after 12 am on January 1st this year:
Code:
chDatePicker:Value = DATETIME(01/01/2015, 60000).
 

Pramod Nair

Member
To set the current date and time:
Code:
chDatePicker:Value = DATETIME(TODAY, MTIME).
To set to be 1 minute after 12 am on January 1st this year:
Code:
chDatePicker:Value = DATETIME(01/01/2015, 60000).
the date issue is solved but current time not working.
 
Top