Guest User

Untitled

a guest
Aug 20th, 2019
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function(){
  2. var now = new Date();
  3. return now.getMonth() + 1;
  4. }
  5.  
  6. function(){
  7. var now = new Date();
  8. var y = now.getFullyear();
  9. var m = now.getMonth()+1;
  10. m = (m<10 ? '0' : '') + m;
  11. var d = '01';
  12. return y + '-' + m + '-' + d;
  13. }
RAW Paste Data