Jump to content

[SOLVED] Easy question about date format


izbryte

Recommended Posts

How do I format the date to 'm.d.y' within my results?

 

<?php

$query  = "SELECT title, employer, location, date FROM jobs";

$result = mysql_query($query);

 

while($row = mysql_fetch_array($result, MYSQL_ASSOC))

{

echo "

  <tr>

    <td><b>{$row['title']}</b> <br>{$row['employer']}</td>

    <td>{$row['location']}</td>

    <td>{($row['date']}</td>

  </tr>";

}

?>

 

Sorry if I'm a bonehead! :)

Link to comment
https://forums.phpfreaks.com/topic/77771-solved-easy-question-about-date-format/
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.