Dear betzy
Use Types button, select date field and choose date from form.
See screenshot:
http://postimg.org/image/e9x89zx3r/
Cheers,
Marcin
Thread Starter
betzy
(@betzy)
i have a template where i want to display the custom field
and this is how i do it: <?php echo types_render_field("data-referat", array());?>--></span>
Dear betzy
Use this code:
types_render_field('data-referat', array('format' => 'd.m.Y'));
More about attributes you can find on this page:
http://wp-types.com/documentation/functions/#date
Cheers,
Marcin
Thread Starter
betzy
(@betzy)
one more question. how to i display date and time?
25.03.2015 12.45 or something like that
Dear betzy
At first change field to date with hours, then you can use any formatting letters from php date format:
http://php.net/manual/en/function.date.php
To take “30.03.2015 22:09” use:
types_render_field('data-referat', array('format' => 'd.m.Y G:i'));
Cheers,
Marcin