Jump to content
The Uniform Server Community

Php date time format


Recommended Posts

Hi is it possible to change date & time format in the PHP.ini file to reflect to this format : dd-mm-yyyy and time to 12 hrs instead of 24 hrs.


When i run a date time php script in the browser i get this format: mm-dd-yy and time 24 hrs. I would like to change the output as mentioned above.


The php script i used was : 



print strftime ('%c');



Any help would be much appreciated. Thx.

Jeret Christopher WEB DESIGNER
Link to comment
Share on other sites

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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