Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi, I have a question, I think it's stupid but I'm breaking my head

I need to show the datetime attribute only the date, without the time d / m / y and not d/m/ y hh-hh-hh how can i do this? follows:

Code: Select all
<cms:editable
    name='data'
    label='Data:'
    type='datetime'
    format='dmy' /> 



Code: Select all
<cms:show data />


Thanks.
Hi,

You may use the <cms:date> tag to output any date in your desired format -
https://docs.couchcms.com/tags-reference/date.html

Following should output what you are looking for -
Code: Select all
<cms:date data format='d/m/y' />

Hope this helps.
Wow, that's right, it worked perfectly. Thank you very much
3 posts Page 1 of 1
cron