How to fetch previous date data in php mysql

前端 未结 2 893
执笔经年
执笔经年 2021-01-21 23:17

\"enter

I am working on stock project in PHP.Currently while searching according date it i

2条回答
  •  无人及你
    2021-01-21 23:44

    You might use something like this

    date('Y-m-d', strtotime("23.12.2015")); // o/p: 2015-12-23
    

    Where 'Y-m-d' format you stored in DB.

    Refer date format here

提交回复
热议问题