o0O0o.o0O0o
02-26-2008, 01:22 AM
hi ,
i want to know how can i use the php function to know that current date
Initially i was using unix time stamp.
what i want is
if (now date is 26 feb)
do this
if(now date is 27 feb)
do thta
with unix time stamp method i had to use
$from = strtotime("26 Feb 2008");
$to = strtotime("27 Feb 2008");
if(now >from and now <to)
do this
so here i had to use two variables from and to to get date of 1 day 26 feb
Is there any function which can do it in one step e,g
if (now = 26 feb)
.....
starting from 1 st second of 26 feb to last second of that day
i want to know how can i use the php function to know that current date
Initially i was using unix time stamp.
what i want is
if (now date is 26 feb)
do this
if(now date is 27 feb)
do thta
with unix time stamp method i had to use
$from = strtotime("26 Feb 2008");
$to = strtotime("27 Feb 2008");
if(now >from and now <to)
do this
so here i had to use two variables from and to to get date of 1 day 26 feb
Is there any function which can do it in one step e,g
if (now = 26 feb)
.....
starting from 1 st second of 26 feb to last second of that day