How to get Actual date in number

General discussions related to php

Moderators: macek, egami, gesf

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

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

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 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

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 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

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 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?


Return to “PHP General”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest

cron