4

How can I create a date field in Drupal just with hours and minutes without years and months?

Matthew Green
  • 10,161
  • 4
  • 36
  • 54
Huzur Polat
  • 95
  • 4
  • 11

2 Answers2

4

You should be able to change the granularity when you create the cck field.

alt text

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

alt text

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

dkinzer
  • 32,179
  • 12
  • 66
  • 85
0

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
Kevin
  • 25,946
  • 2
  • 19
  • 21