Jump to content

[SOLVED] time and date


Pavlos1316

Recommended Posts

Hi

 

How do I get time and date, displayed in a table column?

 

I use

print date("F, dS Y"). "<br>";

but I get nothing.

 

this is my table column:

<div align="left">
  <div align="center">
    <table width="100%" border="0" align="center">
      <tr>
        <th scope="col"><div align="center">
          <div align="left">
            <div align="center">
              <pre><img src="playbutton.jpg" width="116" height="115" /></pre>
            </div>
          </div>
        </div></th>

I want to remove img src and add date and time.

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/114647-solved-time-and-date/
Share on other sites

<div align="left">
  <div align="center">
    <table width="100%" border="0" align="center">
      <tr>
        <th scope="col"><div align="center">
          <div align="left">
            <div align="center">
              <pre><?php echo date("F, dS Y"); ?></pre>
            </div>
          </div>
        </div></th>

 

Make sure you save the page as a .php

Good luck.

Link to comment
https://forums.phpfreaks.com/topic/114647-solved-time-and-date/#findComment-589517
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.