Contact: aviboots(AT)netvision.net.il
39,872 questions
51,796 answers
573 users
const date: any = new Date(); const datestartyear: any = new Date(date.getFullYear(), 0, 0); const dayOfYear: any = Math.floor((date - datestartyear) / (1000 * 60 * 60 * 24)); console.log(dayOfYear); /* run: 356 */