Java script code to show only current date(not time) in an input field of a HTML page.
            Asked
            
        
        
            Active
            
        
            Viewed 92 times
        
    -10
            
            
        - 
                    2You have a history of off-topic or heavily downvoted questions and are at risk of losing your question-asking privileges. [You should read this before you post your next one](http://s.tk/onhold). – John Conde Jun 07 '15 at 02:52
1 Answers
0
            Your question is in part, answered here:
How do I get the current date in JavaScript?
From here you simply have to set the current value of a given input field, let's say it's ID is 'date'.
document.getElementById('date').value = dateVariable;
 
    
    
        Community
        
- 1
- 1
 
    
    
        JaanRaadik
        
- 571
- 3
- 11
