View Full Version : can i show Today's date (09-10-2011) in my widget? would this work? code attached!!!!
benative
09-10-2011, 01:54 PM
<?php
$thedate = date("F d, Y");
/*(March 25, 2002)*/
mail("EMAIL REMOVED", "Your Subject", "
Name: $name\n
Date: $thedate\n
Message: $message\n", "From: $Email\nReply-To: $Email\n");
echo "The mail was sent.";
?>
HMBeaty
09-10-2011, 01:59 PM
http://us.php.net/manual/en/function.date.php
<?php
$thedate = date("m-d-Y");
/*(March 25, 2002)*/
mail("EMAIL REMOVED", "Your Subject", "
Name: $name\n
Date: $thedate\n
Message: $message\n", "From: $Email\nReply-To: $Email\n");
echo "The mail was sent.";
?>
benative
09-10-2011, 02:24 PM
I looked at that page but still don't know how to generate today's date. could you please teach me more?
--------------- Added 1315668479 at 1315668479 ---------------
i think you are talking about this section right?
can I create a bbcode out of it?
for example I just put replace date with {param}
and create a bbcode then wrap that "date" like date would show the date right?
<?php
// Assuming today is March 10th, 2001, 5:16:18 pm, and that we are in the
// Mountain Standard Time (MST) Time Zone
$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
$today = date("m.d.y"); // 03.10.01
$today = date("j, n, Y"); // 10, 3, 2001
$today = date("Ymd"); // 20010310
$today = date('h-i-s, j-m-y, it is w Day'); // 05-16-18, 10-03-01, 1631 1618 6 Satpm01
$today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // it is the 10th day.
$today = date("D M j G:i:s T Y"); // Sat Mar 10 17:16:18 MST 2001
$today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:18 m is month
$today = date("H:i:s"); // 17:16:18
?>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.