ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   DT Picker (https://www.excelbanter.com/excel-programming/329287-dt-picker.html)

Alex Martinez

DT Picker
 
Hi,

How do I get the value of a DT Picker. For example I select a date
4/1/2005. How do I get 4/1/2005. I want to have two DT picker and compare
the value between them. Thank you in advance for help..




Alok

DT Picker
 
If you are talking about the Calendar control then all you do is get its
value property - UserForm1.Calendar1.Value

Alok Joshi

"Alex Martinez" wrote:

Hi,

How do I get the value of a DT Picker. For example I select a date
4/1/2005. How do I get 4/1/2005. I want to have two DT picker and compare
the value between them. Thank you in advance for help..





Kevin Owens

DT Picker
 
Also to compare try:

datediff("d",UserForm1.Calendar1.Value,UserForm2.C alendar2.Value)
the "d" is the day type, this wil return the number of days between the two
date, supplied from the calendar objects.

Regards

"Alok" wrote:

If you are talking about the Calendar control then all you do is get its
value property - UserForm1.Calendar1.Value

Alok Joshi

"Alex Martinez" wrote:

Hi,

How do I get the value of a DT Picker. For example I select a date
4/1/2005. How do I get 4/1/2005. I want to have two DT picker and compare
the value between them. Thank you in advance for help..






All times are GMT +1. The time now is 02:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com