If you want to change the date format and save into mysql database. You can use following php functions.
Let say you are getting date in yyyy-mm-dd format and you want convert that into dd-mm-yyyy format and save into database. so you can use following function.
$timestamp = strtotime(your date variable);
$new_date = date('d-m-Y', $timestamp);
// or use can following code
$new_date = date('d-m-Y', strtotime(your date variable));
// or use can following code
strftime ($time, '%d %m %Y')
Incoming search terms:
- change date format php
- archive data formats wordpress change
- wordpress date format database
- strtotime
- php convert date format wordpress
- php code to replace text
- php code to change date format
- how to change the date format using php
- how to change date format in post in wordpress
- code to change the format of date in php
- change date format wordpress
- wordpress strtotime $variable days







Have you thought of adding some videos to your posts to keep the visitors more entertained?
Educational and entertaining. I’ve additional your internet log to my “reading substance. ” Progress me updated!. . . .
Easily, the post is actually the greatest on this deserving topic. I agree with your conclusions and will thirstily look forward to your coming updates. . . . .
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
Good! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post?
Awesome post. I so good to see someone taking the time to share this information
I would like to say “wow” what a inspiring post. This is really great. Keep doing what you’re doing!!
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs
This post makes a lot of sense !
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
Intriguing post. I have been searching for some good resources for solar panels and discovered your blog. Planning to bookmark this one!
I’ve just started off a blog, the knowledge you give on this site has aided me extremely. Thank you for all your time & work.
Great read. Thanks for the info!
Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
Thanks for posting. Good to see that not everyone is using RSS feeds to build their blogs