Jump to content

[SOLVED] Date function looking for Long string


stevepatd

Recommended Posts

I'm using the Date function and am getting a Warning message saying

 

"Warning: date() expects parameter 2 to be long, string given in C:\Inetpub\wwwroot\lmc\labs\schedule.php on line 357"

 

My code is  $mon = date('M',$value);

I've tried initiating this as -  long $value; 

but it doesn't matter.

 

How do I make this second argument a long string??

So how do I turn warnings off??

 

That is a bad idea. When developing, use

 

error_reporting(E_ALL);

 

The code I posted gives no notices, warnings or errors, so something else is going wrong. If $value has the value you posted then it should be OK with date() function.

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.