GetTheCurrentDate

Get The Current Date

  1. // ==UserScript==
  2. // @name GetTheCurrentDate
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Get The Current Date
  6. // @author MeGaBOuSsOl
  7. // @match Your url
  8. // @icon https://www.google.com/s2/favicons?domain=greasyfork.org
  9. // @grant God
  10. // ==/UserScript==
  11.  
  12. const date = new Date();
  13. var day= date.getDate();
  14. var month = date.getMonth() +1;
  15. var year=date.getYear();
  16. var today= ("le " +day + '/' + month + '/'+ ((2000+year)-100));
  17. alert(today);