Skip to main content
Participant
Aug 30, 2022 10:39 PM UTC
Answered

Display current date in Dreamweaver

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 is closed to new replies. Start a new post to keep the conversation going.
    BenPleysier
    BenPleysierCorrect answer
    Community Expert
    Aug 30, 2022 11:04 PM UTC

    Have a look at 

    https://www.delftstack.com/howto/html/html-todays-date/#:~:text=We%20can%20create%20an%20HTML%20container%20and%20display,property%20and%20call%20the%20Date%20%28%29%20function.%20

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!

    4 replies

    Nancy OShea
    Community Expert
    Community Expert
    Aug 30, 2022 11:14 PM UTC

    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.

     

    Translate
    Nancy O'Shea— Product User & Community Expert
    Participant
    Aug 31, 2022 4:08 PM UTC

    That also helped, thank you!

    Translate
    BenPleysier
    Community Expert
    BenPleysierCommunity ExpertCorrect answer
    Community Expert
    Aug 30, 2022 11:04 PM UTC
    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
    Participant
    Aug 30, 2022 11:11 PM UTC

    That was quick, and it worked. Thank you!

    Translate