<script type="text/javascript">
function input_token () {
var now = new Date();
var year = now.getFullYear();
var month = now.getMonth() + 1;
var day = now.getDate();
var token = year + '-' + month + '-' + day;
document.getElementById('token').value = token;
}
</script>