I've got trivial question for which I can't find simple answer - how can I format Date object in order to get it in format I need? For example, "20.01.2014". I know about moment.js library but I must do it using only native JS. Please, give me answer. Thanks!
            Asked
            
        
        
            Active
            
        
            Viewed 83 times
        
    -2
            
            
        - 
                    2Maybe [this](http://stackoverflow.com/questions/3552461/how-to-format-a-javascript-date) will help? – Martin Oct 15 '15 at 12:50
1 Answers
0
            
            
        You use the getHours, getMinutes, and getSeconds (or getUTCHours, getUTCMinutes, and getUTCSeconds) methods on your Date instance, which give you numbers, and then do the formatting with string manipulation.
 
    
    
        T.J. Crowder
        
- 1,031,962
- 187
- 1,923
- 1,875
