Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Help with Date/Time picker

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jille - 05 Oct 2006 14:49 GMT
I have a userform that includes a Date/Time picker control.

I have assigned a variable to the output but when I insert the variable
contents into a Word document (into a text formfield formatted as plain
text), it is returning the time instead of the date (always 12:00:00).

I don't think the problem lies in the Word doc...I have tested the code and
somewhere it switches to time instead of date. The variable is declared as a
date.

Any thoughts?
Doug Robbins - Word MVP - 05 Oct 2006 19:55 GMT
Use the Format() function to get the format that you want.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I have a userform that includes a Date/Time picker control.
>
[quoted text clipped - 9 lines]
>
> Any thoughts?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.