Posts

Showing posts with the label calculator

What Day Will It Be in 100 Days?

Image
What Day Will It Be in 100 Days? Do you want to know what date and day it will be after 10, 50, or even 100 days? With Function Calculator, you can calculate it yourself — no Google needed. 🚀 1. Today’s Date: now() The built-in function now() gives today’s date and time as a 14-digit number. Example: 20250921130330 This means: Year = 2025 Month = 09 Day = 21 Hour =13 Minute = 03 Second = 30 2. Days in Each Month (with Switch) Since our script has no lists, we use switch statements to handle month lengths. ( Copy below code and go to the Factory page in the calculator and paste it. Press run button to implement code and press save button to save your function .) def getDaysInMonth(year, month) {     if (month==1) {          return 31;     } else if (month==2) {          if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) {             return 29;         ...