tags:

views:

87

answers:

1

hi @all

how cann i create a date field in drupal just with houers an minutes without years and months.

thx

+2  A: 

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
if i juct select Hour an Minute i get this error : "Granularity must include a year."
Huzur Polat
OK I added some extra instructions for changing what is displayed.
DKinzer
THX DKinzer It works now....THX
Huzur Polat