cancel
Showing results for 
Search instead for 
Did you mean: 

date property in custom aspects

unknown-user
Champ on-the-rise
Champ on-the-rise
We have some questions.

We have added a custom aspect, and ok. It works ok when we want to add in a folder. This aspect has a property which is type date.

In the space details, where you want to see the details and values of the new added aspect, the date is shown in the follow format:
Thu Aug 31 11:05:46 CEST 2006
And we want it to see in the format: 31 August 2006 11:05
How can we do that? Changing the format? We have inicialized the aspect with " new Date() ", so it takes the actual date.

And another think about this, is that when a user modifies that aspect, how can we make a validation? We would like to add there, instead of a simply box, do a combo box, or something to avoid to introduce Aug 40 because is not correct.

Need help, please!
Thanks
Bird
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
The date and time formats used in the web-client are configurable as part of the I18N message bundles e.g. see web-client.properties and look for the keys:

# Date Pattern
date_pattern=d MMMM yyyy
date_time_pattern=d MMMM yyyy HH:mm
time_pattern=HH:mm

They accept the standard Java date/time patterns so you can set them up as you see fit.

Thanks,

Kevin

unknown-user
Champ on-the-rise
Champ on-the-rise
thanks Kevin.

We have found the solution to our problem Smiley Happy

we forgot to add the properties in the contentModel.xml file.

So validation solved.

Thanks.
Bird
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.