MS Date Time Picker 6.0 question

R

Robert Crandal

Just wondering, is it safe to assume that the
Microsoft Date/Time Picker 6.0 Control will
always start up with the current date???
 
R

Rick Rothstein

I believe so, but the documentation doesn't mention it. To be sure, though,
you can just assign the date to it in the UserForm's Initialize event...

DTPicker1.Value = Date
 
G

Gord Dibben

I think it will start up with whatever date is set in properties>value

To make sure it is always current date and formatted as you like.

Private Sub UserForm_Initialize()
Calendar1.Value = Format(Date, "dd-mmm-yy")
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top