Dwight3238
Technical User
i'm writing some VBA code for Word and in a text box in a userform i'm getting the user to input the date in the mm/dd/yyyy format, though that's just verbal instructions i don't know how to control that input.
my issue is that i need to convert that date to the "mmmm dd, yyyy" format in my code. i have tried to use the following but it doesn't seem to work
dim myDate as Date, txtDate as Date
myDate = Format(txtDate, "mmmm dd, yyyy"
txtDate is from the text box.
i would appreaciate some guidance on how to first verfiy the input into the text box then how to convert the format.
Thanks
Dwight
my issue is that i need to convert that date to the "mmmm dd, yyyy" format in my code. i have tried to use the following but it doesn't seem to work
dim myDate as Date, txtDate as Date
myDate = Format(txtDate, "mmmm dd, yyyy"
txtDate is from the text box.
i would appreaciate some guidance on how to first verfiy the input into the text box then how to convert the format.
Thanks
Dwight