Jump to content

Date/Time Help


EchoFool

Recommended Posts

Hey,

 

I need help with my date & time string.

I need to edit it do show in a string + also use it for calculating things like when the date has passed.

 

The string is like this:

<?php $string = '2011-01-01 00:00 AM'; ?>

 

So i wanted to check if there was a function that can automatically convert it, so it would say for example:

 

 

  Quote
Sunday, 1st of January 2011

00:00 AM

 

But at the same time compare $string against server time to see if the date has expired?

 

Hope you can help

Link to comment
https://forums.phpfreaks.com/topic/247867-datetime-help/
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.