need a php line help
2015-10-02, 01:24 AM,
#1
Can anyone tell me whats the php code to have on website something like this

"Updated: Today's day/month/year"

Thank you
Reply
Share This Thread :

2015-10-02, 02:11 AM,
#2
PHP Code:
<?= 'Updated: ' date('d/m/Y'); ?>
Reply
2015-10-02, 11:08 AM,
#3
Use capital "M" to get month as "Sep".

``LOOK IN TO MY EYES AND YOU WILL SEE WHAT YOU MEAN TO ME``



nothing
Reply
2015-10-02, 11:19 AM,
#4
I've Google searched it and it only took 10 seconds to find the answer. I bet you didn't even try to search it up. The search terms I used were "php today's date" really that simple man. Please do some research before you post...
Latest Thanks - View all

Snow_White(2015-10-02 11:52 AM) 
Reply
2015-10-02, 11:52 AM,
#5
(2015-10-02, 11:19 AM)LordPanda Wrote: I've Google searched it and it only took 10 seconds to find the answer. I bet you didn't even try to search it up. The search terms I used were "php today's date" really that simple man. Please do some research before you post...

1000% true :D :D :D

``LOOK IN TO MY EYES AND YOU WILL SEE WHAT YOU MEAN TO ME``



nothing
Reply
2015-10-02, 09:29 PM,
#6
(2015-10-02, 11:19 AM)LordPanda Wrote: I've Google searched it and it only took 10 seconds to find the answer. I bet you didn't even try to search it up. The search terms I used were "php today's date" really that simple man. Please do some research before you post...

I bet I was at work on my mobile and decided to ask here to have an answer when back home , because yeah I dont sit at home all day long doing nothing !
Reply
2015-10-03, 09:42 PM,
#7
(2015-10-02, 09:29 PM)t0ks1ck Wrote:
(2015-10-02, 11:19 AM)LordPanda Wrote: I've Google searched it and it only took 10 seconds to find the answer. I bet you didn't even try to search it up. The search terms I used were "php today's date" really that simple man. Please do some research before you post...

I bet I was at work on my mobile and decided to ask here to have an answer when back home , because yeah I dont sit at home all day long doing nothing !

It's not a sin to want to save a little time :)

PHP Code:
<?php
$dt 
= new DateTime();
echo 
$dt->format('d-m-y H:i:s');
?>

Will show output like this:
03-10-15 10:10:12

Hope that helps :)

~MoneyCashers

Even if you don't believe in yourself... I will. :)
Reply
2015-10-04, 05:41 AM,
#8
(2015-10-02, 09:29 PM)t0ks1ck Wrote:
(2015-10-02, 11:19 AM)LordPanda Wrote: I've Google searched it and it only took 10 seconds to find the answer. I bet you didn't even try to search it up. The search terms I used were "php today's date" really that simple man. Please do some research before you post...

I bet I was at work on my mobile and decided to ask here to have an answer when back home , because yeah I dont sit at home all day long doing nothing !

Since when can't you look up these things on a mobile phone? I clearly don't understand the internet forgive me....
Latest Thanks - View all

styx(2016-09-08 09:00 PM) 
Reply
2016-09-08, 09:01 PM, (This post was last modified: 2016-09-08, 09:03 PM by styx.)
#9
lol yea running a google query from a mobile is hard with all those complicated android search bar apps that you have to type your search term in (or use voice recognition) and wait.. lets login to a forum, find the proper sub-forum and post a request there explaining what i need, then wait for a reply. that probably takes less time then searching on google.. </sarcasm>

[Image: IoRrqFZ.jpg]
Reply


Related Threads
Thread Author Replies Views Last Post
  Help Needed CPAgrip php script takumi 4 1,371 2017-01-24, 04:47 AM
Last Post: takumi
  SOME DATA IS NOT BEING INSERTED TO MYSQL DATABASE WITH PHP QwertySon 2 1,391 2016-11-21, 02:52 PM
Last Post: QwertySon
  php + mysql , I need help t0ks1ck 4 1,271 2016-09-19, 01:55 AM
Last Post: styx
  Looking for php - Coder tbonemaker 0 738 2016-02-29, 10:20 PM
Last Post: tbonemaker
  PHP Expert Help Please rajabadariqbal 5 920 2015-09-14, 11:44 AM
Last Post: rajabadariqbal





About Us | Contact Us | CPA Elites | Advertise | Stats

© 2013-2018 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top