[php] hiii
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- <?php
- $var = 'var today = new Date();
- var dd = today.getDate();
- var mm = today.getMonth()+1;
- var yyyy = today.getFullYear();
- if(dd<10)
- {
- dd=\'0\'+dd;
- }
- if(mm<10)
- {
- mm=\'0\'+mm;
- }
- today = mm+\'-\'+dd+\'-\'+yyyy;
- console.log(today);
- today = dd+\'-\'+mm+\'-\'+yyyy;
- console.log(today);
- var dob = \'1994-10-11\';
- var en=dob.split(\'-\');
- console.log(en);
- var year = en[0];
- var month = en[1];
- var day = en[2];
- var age = yyyy - year;
- if (mm < month || (mm == month && dd < day)) {
- age--;
- }
- alert(age);';
Editor
You can edit this paste and save as new:
File Description
- hiii
- Paste Code
- 27 Jan-2021
- 542 Bytes
You can Share it: