dtd793353 2014-10-17 16:57
浏览 66

在codeigniter中将用户输入日期转换为mysql

Iam new in codeigniter. I tried to convert a user input date with format dd-mm-yyyy to mysql format yyyy-mm-dd. But I got only the functions here https://www.codeigniter.com/user_guide/helpers/date_helper.html. Is there any way to do this? Please help. Thanks in advance..

  • 写回答

1条回答 默认 最新

  • dpevsxjn809817 2014-10-17 17:04
    关注

    php can do that, you don't need codeigniter helper

    echo date('Y-m-d', strtotime('18-10-2014'));
    
    评论

报告相同问题?

悬赏问题

  • ¥15 chaquopy python 安卓
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 CSS实现渐隐虚线框
  • ¥15 有没有帮写代码做实验仿真的
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥30 vmware exsi重置后登不上
  • ¥15 易盾点选的cb参数怎么解啊
  • ¥15 MATLAB运行显示错误,如何解决?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容