Date Templating with .NET
Output as text
Here is a simple example that hows how to add a Date field to your templates.
<input type="text" value="@Model.document.GetDate("blog-post.date").AsText()}"/>
Was this article helpful?
Can't find what you're looking for? Get in touch with us on our Community Forum.