You could also use the php date() function.
date('I');
If you need it for a specific date, then
date('I',$timestamp);
Curt Zirzow wrote:
> * Thus wrote Chirag Shukla:
> >
> > This function can be used to know whether it is Daylight Savings time or
> > not for the given date. It may not be
// here is the date. We wont worry about the time.
$processdate = "07/04/2004 14:45";
What about different formats like 07-04-2004 14:45:00
...You have a good point, Curt. We could modify the code just a little
bit for the same then. Instead of exploding with "/", we may opt for
* Thus wrote Chirag Shukla:
>
> This function can be used to know whether it is Daylight Savings time or
> not for the given date. It may not be the most optimized program, but
> may be helpful.
>
> If there is a modified code, please let me know.
ok.
>
>
> // here is the date. We w
This function can be used to know whether it is Daylight Savings time or
not for the given date. It may not be the most optimized program, but
may be helpful.
If there is a modified code, please let me know.
Thank you.
Sincerely,
Chirag Shukla.
// here is the date. We wont worry about t
4 matches
Mail list logo