Hi,
Not just ONE property. But you can combine datetime with e.g. the included weekday property EPiServer.SpecializedProperties.PropertyWeekDay.
If that's not enough you can create a list propery with the necessary properties, e.g. IList<Occurrence> where every Occurrence at least have a datetime propery.
Thank you very much for your answer, Johan.
You are right, it seems to be that I will need two fields. Still had some hope that EPi has done some tuning over their existing DateTime control...
WeekDay seems to be kind of obsolete by the way. Getting some kind of own Enum and SelectOne/Many will look much better.
The most convinient option for the content editors was option with two fields:
The dropdown for a day of the week based on he Enum
[SelectOne(SelectionFactoryType = typeof(EnumSelectionFactory<DayOfWeek, string>))] public virtual string DayOfWeek { get; set; }
The string field for a time based on the DateTime client part
[ClientEditor(ClientEditingClass = "dijit/form/TimeTextBox")] public virtual string Time { get; set; }
Hi,
I have a question, if there is any option to store recurring events in EPi.
For example, I have an alarm that fires at 8.00 every Monday. Is there any way to do it with a DateTime property?