That's it! Works here also. But Tasker should not crash otherwise.
Example:
<!DOCTYPE html>
<html>
<body>
<p>Select date:</p>
<input type="date" id="picker">
<button onclick="getDate()">OK</button>
<script>
function getDate()
{
tk.setLocal("date", document.getElementById("picker").value);
destroyScene("DatePicker");
}
</script>
</body>
</html>
Option:
<input type="date" id="picker" oninput="getDate()">
Destroys the scene immediately after selecting a date (no button needed). Depends on what you want to do...
Task:
PickDate (3)
A1: Show Scene [ Name:DatePicker Display As:Dialog, Dim Behind Heavy Horizontal Position:100 Vertical Position:100 Animation:System Show Exit Button:On
Continue Task Immediately:Off ]
A2: Flash [ Text:%date Long:Off ]
Thank you for bringing this up. That is a really cool feature! Other input types available: week, time, color, range, ...
Juergen.