echo date('Y-m-d',strtotime('2014-01-01'));
解决方案 »
- apache+mysql+php简单遍历展示几条数据响应很慢
- 跪求基于FPGA的8*8的FFT的 Verilog程序
- 求解:一个页面跳转的问题
- 寻LAMP(Linux, Apache Mysql PHP)开发人才,待遇优厚
- goole 搜索提示 用什么事件触发的
- 奇怪了,,为什么设置disply_errors无效。。。
- 用session 存储数组?
- 又是session的问题,winxp+apache2.0.46+php4.3.2+mysql4.23.57
- 高分问题!!!!!!!!!怎样得到当前的星期?并把它转化为int?谢谢了,请给出代码我给高分
- SQL报错,You have an error in your SQL syntax; check the manual that corresponds to
- while($row = sqlsrv_fetch_array($query))
- PHP+mysql的一个问题
echo date('Y-m-d', strtotime($d));
一是更改数据库保存的字段类型
二是使用date和strtotime函数.