You know your age in years; how about in days?
Enter a date:
DateObject gives you an exact date that you can do computations with:
It understands most common date formats:
Run the code to compute the number of days from now back to a date. Try other dates:
Now gives you the date and time at the instant you run it:
Subtract a date from Now to find the number of days back to the date:
Round to whole days. Try other dates:
Round rounds decimal numbers to integers:
Round a date computation to get an answer in whole days:
Convert to minutes. Try other dates, like your birthday (to find out how many minutes old you are):
UnitConvert converts between different units, like grams and pounds, or days and minutes.
This gives an answer in days:
Convert the result to minutes:
Spell out the result. Try other dates:
The result of a date calculation has both a value (the number) and a unit (min):
Use QuantityMagnitude to get just the value:
IntegerName gives the spelled-out names of numbers:
Spell out the result of a date calculation:
Get the result in seconds. Try other units, like "Hours", "Weeks" or "Months":
Share It—Make a website that tells you how many days old you are. Try making a site that tells you how many seconds old you are:
Deploy the “days old” calculation to make a website where you can enter a birthdate and find out how many days old you are:
Click the link in the output to visit the site.
Format the output more nicely using Row:
Make the text larger:
Click the link in the output to visit the site.
Tell the world about your creation by sharing the link via email, tweet or other message.