留言板

date/time field in structure

Haythem Benizid,修改在9 年前。

date/time field in structure

New Member 帖子: 7 加入日期: 14-8-3 最近的帖子
Hello,
I work with Liferay 6.2 CE.
I added a new structure, in which I added a date field. when adding content I can not specify the time.
how I can configure the field the way it gives me the possibilty to enter the date and time ?
should i add a new field ?
Adel Bayoudh,修改在9 年前。

RE: date/time field in structure

Junior Member 帖子: 47 加入日期: 14-8-5 最近的帖子
same problem !
thumbnail
James Falkner,修改在9 年前。

RE: date/time field in structure

Liferay Legend 帖子: 1399 加入日期: 10-9-17 最近的帖子
Adel Bayoudh:
same problem !


There is no native Liferay picker field type for time - you'll have to use a separate field (or collection of fields).

- Use a text field, and ensure that the time is entered like HH:MM or HH:MM:SS or something similar.
- Use two select fields, where one selects the hour (1-23) and the other selects the minutes (0-59, or perhaps 0, 5, 10, 15, ...)
- Use "number" fields (to ensure they don't enter negative numbers) instead of select fields