Q:

Word VBA Creation Date as Just date and No Time

Trying to get the creation date of a document with just the date and no time (this is to select all documents in a folder that were created on a given day).
I can get the date and time the documents were created but not just the date!
Is there a way to do this in Word VBA?
Currently using the following line of code for this:
       intDate = wdDocTgt.BuiltInDocumentProperties("Creation Date")

A:

Try rounding (actually just take the integer part):
intDate = int(wdDocTgt.BuiltInDocumentProperties("Creation Date"))

Remember, dates and times are just numbers. Everything is stored in days, which means time is the fraction part. Removing the fractions removes the time.

