gpt4 book ai didi

phpmyadmin - 更改 phpmyadmin 中的日期格式

转载 作者:行者123 更新时间:2023-12-04 01:02:28 28 4
gpt4 key购买 nike

我正在尝试更改 phpmyadmin 中的日期格式。我无法更改格式 我想将格式更改为 dd-mmm-yyyy。如何更改日期格式。请帮我解决它..

最佳答案

您可以使用 phpMyAdmin 的 browser transformations功能来做到这一点。

  • 转至 Structure相关表格的页面。
  • 点击 Change Actions 中的超链接的列
    相关日期/日期时间/时间戳列。
  • 选择 Text/Plain: Dateformat来自 Browser Transformation落下。
  • 插入 0,'%d-%b-%Y','local'进入转换选项列。
  • 保存更改并返回 Browse页。

  • 来自 Text/Plain: Dateformat 上的文档转型

    Displays a TIME, TIMESTAMP, DATETIME or numeric unix timestamp column as formatted date. The first option is the offset (in hours) which will be added to the timestamp (default: 0). Use second option to specify a different date/time format string. Third option determines whether you want to see local date or UTC one (use "local" or "utc" strings) for that. According to that, date format has different value - for "local" see the documentation for PHP's strftime() function and for "utc" it is done using gmdate() function.

    关于phpmyadmin - 更改 phpmyadmin 中的日期格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22827579/

    28 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com