lastMod = ActiveDocument.CustomDocumentProperties("ModificationDate").Value

If MsgBox("The document modification date is " & lastMod & _
". Do you want to change" & " the document modification date
to today's date?", vbYesNo) = vbYes Then
ActiveDocument.CustomDocumentProperties("ModificationDate").Value =
Date

...
The date is shown with both Date/Time, but I want it to be displayed as a
date only. What do I need to do to get the desired format?
ModificationDate is a Custom Property of the document and is in DATE format.

Thanks in advance

Barb Reinhardt

Re: Date format in Message by Doug

Doug
Wed Apr 06 13:25:16 CDT 2005

Use the Format() function

--
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
"Barb R." <BarbR@discussions.microsoft.com> wrote in message
news:F6BCFA5A-4C78-463E-AA08-A2CA29B3C6D3@microsoft.com...
> lastMod =
> ActiveDocument.CustomDocumentProperties("ModificationDate").Value
>
> If MsgBox("The document modification date is " & lastMod & _
> ". Do you want to change" & " the document modification date
> to today's date?", vbYesNo) = vbYes Then
> ActiveDocument.CustomDocumentProperties("ModificationDate").Value =
> Date
>
> ...
> The date is shown with both Date/Time, but I want it to be displayed as a
> date only. What do I need to do to get the desired format?
> ModificationDate is a Custom Property of the document and is in DATE
> format.
>
> Thanks in advance
>
> Barb Reinhardt



Re: Date format in Message by BarbR

BarbR
Wed Apr 06 13:51:02 CDT 2005

That works! Thanks.

"Doug Robbins" wrote:

> Use the Format() function
>
> --
> 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
> "Barb R." <BarbR@discussions.microsoft.com> wrote in message
> news:F6BCFA5A-4C78-463E-AA08-A2CA29B3C6D3@microsoft.com...
> > lastMod =
> > ActiveDocument.CustomDocumentProperties("ModificationDate").Value
> >
> > If MsgBox("The document modification date is " & lastMod & _
> > ". Do you want to change" & " the document modification date
> > to today's date?", vbYesNo) = vbYes Then
> > ActiveDocument.CustomDocumentProperties("ModificationDate").Value =
> > Date
> >
> > ...
> > The date is shown with both Date/Time, but I want it to be displayed as a
> > date only. What do I need to do to get the desired format?
> > ModificationDate is a Custom Property of the document and is in DATE
> > format.
> >
> > Thanks in advance
> >
> > Barb Reinhardt
>
>
>