Created
May 18, 2021 19:50
-
-
Save filiperdt/0f19c5320c2057817d59d760d3514a01 to your computer and use it in GitHub Desktop.
Insert current date time into Thymeleaf input th:value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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