在PHP MySQL中更改日期甲酸 [英] change date formate in php mysql

查看:73
本文介绍了在PHP MySQL中更改日期甲酸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改原始日期ID(年月日)的日期格式,但我需要(月/日/年)格式存储日期

i want to change the date format the original date id (year-moth-day) but i am require is (month/day/year) formate to store the date

推荐答案

使用日期"对其进行格式化,如下所示:
Use "date" to format it as you can see here:
date(''d/m/Y H:i:s'',strtotime(


strThatContainsTheMySQLReturnedDate))
strThatContainsTheMySQLReturnedDate))


您可以在此处获取更多信息 [


You can get more information here[^].

Hope this helps! :thumbsup:


这篇关于在PHP MySQL中更改日期甲酸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆