Date format in structure field

Hi everyone,
I use this structure field blueprint:

programmazione:
    label: Programmazione
    type: structure
    entry: >
      <b>Giorno:</b> {{giorno}}<br/>
      <b>Ora:</b> {{ora}}
    fields:
      giorno:
        label: Giorno
        type: date
        format: DD/MM/YYYY	
      ora:
        label: Ora
        type: time
        default: 21:00

And the problem is that the date “giorno” loses its format after adding.

The date field format is only used to display and edit the date in the field itself. After you click save, the date is always converted to YYYY-MM-DD to make sure it can be parsed in your templates. The structure field then fetches the actual value of the field, which has the wrong format.

I think the problem is that the format is only there to display the content while it is always saved to file in the same format no matter what format you define. And the entry in a structure field just takes the format from how it is saved to file. That could probably only be changed if the entry field had options to define the date format.

@lukasbestle You beat me to it :grinning:

Ok, I understand.
Anyway, it is not a big problem, just a nuisance.

Thanks!

How do you always create those cool animated gif’s? :hushed:

There are lots of tools you can use, e.g. on your desktop licecap, use google search … or check out this article http://www.pcmag.com/article2/0,2817,2392701,00.asp

Usually I use this: https://screentogif.codeplex.com/