How c开发者_开发知识库an I create a date field in Drupal just with hours and minutes without years and months?
You should be able to change the granularity when you create the cck field.
Jut select what you need from that Granularity options.
You can also just format the date by creating a new format:
Click on the date and time date format page and then create a new format that looks like this: h:i That's the time and date
Select that format for display.
You can go to the following site to see more Date format string options:
http://us3.php.net/manual/en/function.date.php
This should also help, http://drupal.org/node/134144#comment-1982750
- how to add your own formats
- set time only or set any php date setting you want
精彩评论