Date Format Change on a Userform

patteb

New Member
Joined
Oct 23, 2017
Messages
6
How can i cahnge the date format on a userform?

i have a calander pop up when the command button is pressed, when the date is selected it goes into the text box in the mm/dd/yyyy format. i want to change it to a dd/mm/yyyy or a DD MMM YY format. nothing has worked that i tried.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How can i cahnge the date format on a userform?

i have a calander pop up when the command button is pressed, when the date is selected it goes into the text box in the mm/dd/yyyy format. i want to change it to a dd/mm/yyyy or a DD MMM YY format. nothing has worked that i tried.
You did not specify where the date from the calendar popup is located at, so let's assume D is the value being returned from your calendar popup, try assigning this to the TextBox...

Format(D, "DD MMM YY")
 
Upvote 0
Hi Rick

When the date is selected from the calendar the textbox beside the command button is populated, its textbox3 that is populated and the calander name is MonthView1.

does this make more sense?
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top