Advertisement
vir0e5

Change value element

Aug 26th, 2021
1,162
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* Using Javascript Injector exteensions chrome
  2. And insert code
  3. Case date "YYYY-mm-dd" to "dd-mm-YYYY"
  4. */
  5.  
  6.  
  7. var tampilTanggal = document.getElementById("TGL_LHRx");
  8.     var thn   = tampilTanggal.innerHTML.substring(0, 4);
  9.     var bln   = tampilTanggal.innerHTML.substring(5, 7);
  10.     var tgl   = tampilTanggal.innerHTML.substring(8, 10);
  11.     var tanggal = tgl + '-' + bln + '-' + thn;
  12. tampilTanggal.innerHTML = tanggal;
  13.  
  14.  
  15.  
Advertisement
RAW Paste Data Copied
Advertisement