Developer forum

Forum » CMS - Standard features » Is it possible to format output of date item field?

Is it possible to format output of date item field?

Hans Ravnsfjall
Reply

As default, it outputs this format 01-01-1901 00:00:00

I want to output eg. 1. Januar 1901

 

Is there any format extension or some way that I can control the output format of an item date tag?

 

regards Hans

 


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Hans

Talking in frontend in templates?

You can use any date time extension: http://templates.dynamicweb.com/TemplateTags/Dynamicweb-template-tags/General-tags/Date/time-tag-extensions.aspx

If it is Razor templates, you can use datetime and string formatting, i.e. http://stackoverflow.com/questions/4679352/converting-datetime-format-using-razor

In the backend the format is controlled by the admin language, and you cannot override that...

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum