How can a custom Drupal date format be added?

后端 未结 2 989
面向向阳花
面向向阳花 2021-01-01 11:34

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.

2条回答
  •  死守一世寂寞
    2021-01-01 12:26

    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 Date and time

提交回复
热议问题