开发者

Drupal CCK date field with just hours and minutes

开发者 https://www.devze.com 2023-01-17 01:44 出处:网络
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.

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.

Drupal CCK date field with just hours and minutes

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

Drupal CCK date field with just hours and minutes

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
0

精彩评论

暂无评论...
验证码 换一张
取 消