I need to add a date field that is in text type. The HTML code for it is as follows:
<input class="form-control ng-pristine ng-invalid ng-touched" type="text" id="date" name="date">
Can anyone assist me in automatically sending the current date to this field? I have tried several methods, but when I use Date() to get the current date, the test does not even execute.