skip to Main Content

in javascript , why the date is not getting stored in targetdate variable taken from the prompt

const seconds=1000, minute=60*seconds,hours= 60*minute,day= 24*hours; const days= document.querySelector(".days"); const hrs= document.querySelector(".hrs"); const min= document.querySelector(".min"); const sec= document.querySelector(".sec"); //main target //function const timerfunction =()=>{ let dd = prompt("Enter Date").padStart(2,"0"); let mm = prompt("Enter Month").padStart(2,"0"); let yyyy =prompt ("Enter Year") ; console.log(`${dd}/${mm}/${yyyy}`);…

VIEW QUESTION

What are the date bounderies in PHP

i use several datefunction with dates around the French republic of 1792-1806. But i want to know if the (php8) date function can handle these dates. function CheckFrDate($CheckDate){ $BeginFrDate = date_create_from_format('d/m/Y', '22/09/1792'); $EndFrDate = date_create_from_format('d/m/Y', '22/09/1806'); if ( $CheckDate->getTimestamp() >…

VIEW QUESTION
Back To Top
Search