TextRange.InsertDateTime (PowerPoint)
Inserts the date and time in the specified text range. Returns a TextRange object that represents the inserted text.
The DateTimeFormat parameter value can be one of these PpDateTimeFormat constants.
InsertDateTime (DateTimeFormat, InsertAsField)
Dim treInsertDateTime As TextRange
Set treInsertDateTime = ActivePresentation.Slides(1).Shapes(1).TextFrame.TextRange.InsertDateTime(DateTimeFormat:=ppDateTimeddddMMMMddyyyy)
Arguments
The following argument is required
DateTimeFormat (PpDateTimeFormat) - A format for the date and time.
Here you can find possible values for
Optional arguments
The following argument is optional
InsertAsField (Office.MsoTriState) - Determines whether the inserted date and time will be updated each time the presentation is opened.