Jump to content

[solved] add time() to date() with $row ?


tjhilder

Recommended Posts

Hi,

I dunno if that title makes any sense... basicly I have this:[code]$month = date("m", $row['a_dfrom']);[/code]

but I want to take away 1 from it, doing -1 like..

[code]$month = date("m", $row['a_dfrom'])-1;[/code]

this seems to transfer any thing like 01 - 09 to 1 - 9 so when php checks to see if 08 is 08 it comes up 8 is 08.

is there any way of fixing this?

thanks in advance.
Link to comment
https://forums.phpfreaks.com/topic/20878-solved-add-time-to-date-with-row/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.