Skip to content

Instantly share code, notes, and snippets.

@filiperdt
Created May 18, 2021 19:50
Show Gist options
  • Save filiperdt/0f19c5320c2057817d59d760d3514a01 to your computer and use it in GitHub Desktop.
Save filiperdt/0f19c5320c2057817d59d760d3514a01 to your computer and use it in GitHub Desktop.
Insert current date time into Thymeleaf input th:value
<input type="text" class="form-control" th:value="${#dates.format(#dates.createNow() , 'yyyy/MMM/dd_HH-mm-ss')}">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment