How to insert today's date into a URL?

后端 未结 6 495
陌清茗
陌清茗 2020-12-11 23:11

I have a url that change every day based on today\'s date, for example:

http://www.newspaper.com/edition/20141227.ht         


        
6条回答
  •  Happy的楠姐
    2020-12-11 23:43

    Thanks for all the answers colleagues. For Dnyanesh, I tried the code in http://jsfiddle.net/ can work well. I try to enter into an html page like this, why can not run perfectly. Where is the mistake?

    
    
    
    
    
    
    
    
    
    
    Any URL
    
    
    
    
    

提交回复
热议问题