Find when it was 10, 100, 1,000, 10,000, etc. days ago.
Run the code to find the current date:
This gives today’s date:
You can also get yesterday’s date and tomorrow’s:
Find the date exactly 100 days ago. Try other numbers of days:
DatePlus adds a number of days to a date.
This gives the date 10 days from now:
This gives the date 100 days ago:
Make a table of the first 9 powers of 10. Try different numbers of powers:
We’re going to want to look at dates in powers of 10.
This is how to use Table to make a list of the first 9 powers of 10:
Make a table of “powers of 10 dates”. Try more than 5 dates:
This makes a list of dates in increasing powers of 10 days ago:
Use DateString to format the date objects as text strings.
This gives today as a date object:
This converts the date object to a text string:
Make every element of the date list a text string:
Format the list as a column (you can use either the ...//Column form or the Column[...] form; they mean the same thing):
Include the number of days in a table. Try ranges other than 5:
Note: if you change the increment from 10, you have to change both occurrences of 10.
This makes a list of lists. Each sublist has a number of days, and the date that many days ago:
Format the list of lists as a grid. Each sublist is a row in the grid:
Use FrameAll to add frame lines:
Share It—Make a website that gives powers of ten tables for dates:
Deploy a form that gives you a power of ten table for a date you specify:
Click on 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.