Hello all:
Another issue arose with my Date/Time syntax question located HERE:
It's a different question so I started a new thread.
This is a (hopefully) simple question about syntax of the "DateAdd" VBA command in MS Word 2003. I'm using the following code to populate a VBA text box:
For the most part it works, returning a value in the text box of (for example) 10:29:22 PM.
However, sometimes I get an undesired value like this: 12/29/1899 10:29:22 PM
Where did the date come from? I specifically formatted for TIME only. Is my syntax wrong? Any ideas?
Another issue arose with my Date/Time syntax question located HERE:
It's a different question so I started a new thread.
This is a (hopefully) simple question about syntax of the "DateAdd" VBA command in MS Word 2003. I'm using the following code to populate a VBA text box:
Code:
Dim MountainTime as Date
...
MountainTime = DateAdd("h", -1, FormatDateTime(Now(), 3))
For the most part it works, returning a value in the text box of (for example) 10:29:22 PM.
However, sometimes I get an undesired value like this: 12/29/1899 10:29:22 PM
Where did the date come from? I specifically formatted for TIME only. Is my syntax wrong? Any ideas?