Help with strtotime()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mfbrowne
Forum Newbie
Posts: 16
Joined: Tue May 02, 2006 11:45 am

Help with strtotime()

Post by mfbrowne »

Could someone help me with this:

If I use the following ;

Code: Select all

strtotime( '9:00 pm') ;
I get a converted date/time of 9:00 am

If I use the following ;

Code: Select all

strtotime( '21:00') ;
Then I get the proper converted date/time.

I am confused as to how I would get the proper date/time for example 1 above.

Thanks
mfbrowne
Forum Newbie
Posts: 16
Joined: Tue May 02, 2006 11:45 am

Post by mfbrowne »

You may all ignore this post as I was just being really stupid.

Thanks
Post Reply