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.
相关问题
- Date with SimpleDateFormat in Java
- VBA local timezone adjustment
- @DateTimeFormat in Spring produces off-by-one day
- Is locale setting global in perl?
- How do you use java stream api to convert list of
相关文章
- MYSQL: How can I find 'last monday's date&
- Calculate number of working days in a month [dupli
- Get file created date in node
- Temporal Extraction (i.e. Extract date/time entiti
- Postgres String to Date EXAMPLE 10Apr77 to 10/04/1
- Date format conversion in JavaScript
- converting to timestamp with time zone failed on A
- Php array containing all dates of the current mont
Do the following:
Administration » Configuration » Regional and language » Date and Time
There you will see a tab for format.
Create a new format string "Y-M-d".
Make this as your default for all date fields and you won't see the seconds any more.
You don't need the date module for basic formatting.
Cheers, Vishal
Below is the image so that you know where it is.
You will see a button Add format in this path
admin/config/regional/date-time/formats
Then, type your format there. This will help you: http://php.net/manual/en/function.date.php
After adding your format, you can choose in the tab Types
Oops. I had this tab open in my browser for long time and didn't see the other answer.