如何添加自定义的Drupal日期格式? [英] How can a custom Drupal date format be added?

查看:198
本文介绍了如何添加自定义的Drupal日期格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何添加自定义Drupal日期格式。我想显示日期没有小时和分钟,但选项不包括它。

解决方案

执行以下操作:


  1. 管理»配置»区域和语言»日期和时间


  2. 您将看到格式的选项卡。


  3. 创建一个新的格式字符串YMd。


  4. 将此作为所有日期字段的默认值,


  5. 您不需要基本格式的日期模块。


干杯,
Vishal



以下是图片,以便您知道它在哪里。 p>


How do you add a custom Drupal date format. I want to display the date without hours and minutes, but the options don't include it.

解决方案

Do the following:

  1. Administration » Configuration » Regional and language » Date and Time

  2. There you will see a tab for format.

  3. Create a new format string "Y-M-d".

  4. Make this as your default for all date fields and you won't see the seconds any more.

  5. You don't need the date module for basic formatting.

Cheers, Vishal

Below is the image so that you know where it is.

这篇关于如何添加自定义的Drupal日期格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆