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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.