To change date format in sql

前端 未结 3 493
无人及你
无人及你 2020-12-22 02:37

I have date in mm/dd/yyyy format in database.I want to display in form as dd/mm/yyyy. Can anybody help?I want to get time along with date.

3条回答
  •  再見小時候
    2020-12-22 02:52

    A date value doesn't have a format at all. It gets it's format when you convert it to a string.

    You can use the convert function to convert the value in the database, but you should rather leave that to the code in the user interface.

提交回复
热议问题