Create a text field with the current date

Hi at all,
I am trying to create a textfield that shows the current date in a tasklist form. However my solution is not working for now, the textfield only shows tt.mm.jjjj.
This is my solution for now:

<div class="form-group">
        <label for="creation_date">Today</label>
        <script cam-script type="text/form-script">
		   $scope.today = {
         value: new Date()
       };
    </script>
        <input type="date"
               cam-variable-name="creation_date"
               cam-variable-type="Date"
               ng-model="today.value"
               readonly="true"/>

    </div>

Thank you for your help :slight_smile:

Oh yes, I got it!
The solution looks like this:

image

I hope it helps you too :heart_eyes:

1 Like