Foren

date/time field in structure

Haythem Benizid, geändert vor 9 Jahren.

date/time field in structure

New Member Beiträge: 7 Beitrittsdatum: 03.08.14 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: date/time field in structure

Junior Member Beiträge: 47 Beitrittsdatum: 05.08.14 Neueste Beiträge
same problem !
thumbnail
James Falkner, geändert vor 9 Jahren.

RE: date/time field in structure

Liferay Legend Beiträge: 1399 Beitrittsdatum: 17.09.10 Neueste Beiträge
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