Date Templating with .NET

Output as text

Here is a simple example that hows how to add a Date field to your templates.

Copy
<input type="text" value="@Model.document.GetDate("blog-post.date").AsText()}"/>

Was this article helpful?
Not really
Yes, Thanks

Can't find what you're looking for? Get in touch with us on our Community Forum.