Skip to main content
Participant
August 30, 2022
Answered

Display current date in Dreamweaver

  • August 30, 2022
  • 2 replies
  • 421 views

I'm trying to have a current day and date display in Dreamweaver. I followed the guides on this page:

https://helpx.adobe.com/dreamweaver/using/insert-dates.html

 

but it only displays the date I created it. I've checked automatically update on save, but still doesn't work.

Thanks for any help!

    This topic has been closed for replies.

    2 replies

    Nancy OShea
    Community Expert
    Community Expert
    August 30, 2022

    Current date comes from the server it's hosted on.

     

    If your server supports PHP scripts, this displays Today's Date in this format.

    Tue Aug 30, 2022 16:07 pm

    <p><?php echo date("D M d, Y G:i a"); ?></p>

    Save your file with .php extension.

     

    Hope that helps.

     

    Nancy O'Shea— Product User & Community Expert
    Participant
    August 31, 2022

    That also helped, thank you!

    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    August 30, 2022
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Participant
    August 30, 2022

    That was quick, and it worked. Thank you!