Welcome to The Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

[PHP] Date/Time


Aaron
 Share

Recommended Posts

Ok so I want to change the way my date/time echos from the DB

 

In the DB I am using Date/Time as the format, so obviously it would look like this:indb1.png

and that would echo:indb.png

 

But what I am trying to get it to echo is:whatiwant.png

 

So I am thinking something like strpos and then changing that with str_replace, but I don't know how I would do that.

Edited by Aaron
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.

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

 Share