date field granularity
iko - November 3, 2009 - 15:52
| Project: | Patterns |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi,
Could someone please give me the right syntax for creating a date field through a pattern ? - well, actually, I succeeded in it but the granularity is not correctly set : I just need the year, month and day ; when created, the field has "year,month,day,hour,minute" granularity (which is default settings I believe). I tried :
<granularity>
<year>year</year>
<month>month</month>
<day>day</day>
</granularity>... this ... :
<granularity>
<year>1</year>
<month>1</month>
<day>1</day>
<hour>0</hour>
<minutes>0</minutes>
</granularity>... this .. :
<granularity>
year,month,day
</granularity>... and so on ! now I don't know what to try and I'm quite desperate !!
Need help, please !
Thank you !
