Share via


HeadersFooters.DateAndTime Property

Returns a HeaderFooter object that represents the date and time item that appears in the lower-left corner of a slide or in the upper-right corner of a notes page, handout, or outline. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property DateAndTime As HeaderFooter
    Get
'Usage
Dim instance As HeadersFooters
Dim value As HeaderFooter

value = instance.DateAndTime
HeaderFooter DateAndTime { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.HeaderFooter
HeaderFooter

Examples

This example sets the date and time format for the slide master in the active presentation. This setting will apply to all slides that are based on this master.

Set myPres = Application.ActivePresentation

With myPres.SlideMaster.HeadersFooters.DateAndTime.Format = ppDateTimeMdyy

    .UseFormat = True

End With

See Also

Reference

HeadersFooters Interface

HeadersFooters Members

Microsoft.Office.Interop.PowerPoint Namespace