Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

How to get Actual date in number

General discussions related to php

Moderators: macek, egami, gesf

How to get Actual date in number

Postby henris » Fri Jul 20, 2012 2:19 am

Hello,

How can I get the actual date in numeric integer form.

Thanks

Henris
henris
New php-forum User
New php-forum User
 
Posts: 3
Joined: Tue Jul 17, 2012 11:54 pm

Re: How to get Actual date in number

Postby Nullsig » Fri Jul 20, 2012 3:28 am

strtotime will convert a date (yyyy-mm-dd) into an integer that represents seconds since January 1st, 1753
User avatar
Nullsig
php-forum Fan User
php-forum Fan User
 
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: How to get Actual date in number

Postby henris » Fri Jul 20, 2012 2:42 pm

What I would like is to display the actual system date number automatically (so changing every day)

Henri
henris
New php-forum User
New php-forum User
 
Posts: 3
Joined: Tue Jul 17, 2012 11:54 pm

Re: How to get Actual date in number

Postby Nullsig » Tue Jul 24, 2012 4:15 am

I am afraid I don't understand what you mean.

You want the day of the month? Day of the year?
User avatar
Nullsig
php-forum Fan User
php-forum Fan User
 
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI


Return to PHP General

Who is online

Users browsing this forum: Bing [Bot] and 7 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.