Discussion Forum > Text calendar 2018 to 2030
Is there a script you use to make this that you could share with us? That would be really helpful...
March 15, 2018 at 2:48 |
james220
james220
I didn't use a script, I created it in TextEdit (text editor on the Mac) using lots of copy/paste. Key to this is the little-known trick that if you hold down Alt when dragging with the mouse you can select vertical areas of text. So it's a simply job of entering once and copying multiple times the days of the week, then entering the dates, copying those for normal and leap years, and then using the trick to align Jan 01 to the correct day of the week for however many years you want. Finally a bit of tidying up, spacing, titles, etc.
Regards,
Chris
Regards,
Chris
March 15, 2018 at 4:47 |
Chris
Chris
james220:
I wrote a quick JavaScript that produces the same output: http://jsfiddle.net/qnoertvc/35/
You can set the set the start and end year by changing the variables at the top. You can also change the strings in the variables yearPrefix, months, and weekdays to change the look or translate into another language.
I wrote a quick JavaScript that produces the same output: http://jsfiddle.net/qnoertvc/35/
You can set the set the start and end year by changing the variables at the top. You can also change the strings in the variables yearPrefix, months, and weekdays to change the look or translate into another language.
March 15, 2018 at 13:40 |
Andreas Maurer
Andreas Maurer
Nice one, thanks Andreas.
March 15, 2018 at 14:38 |
Chris
Chris
Turns out, a calendar of that format only requires 7 months. Every other is a quick copy/edit if you know how long your months are. March is a "Th 01" month.
March 15, 2018 at 16:50 |
Alan Baljeu
Alan Baljeu
Indeed, you can make a template for each month type and then copy them. Some years are the same too, or parts of them. It was actually much quicker to paste entire years and then paste in the entire year of dates starting on the correct date for each one. Andreas's script makes it even quicker - I'll make a note to check it again in 12 years!
March 15, 2018 at 17:04 |
Chris
Chris
Now you made me realise that 2030 is in only 12 years.
I feel old. :-)
I feel old. :-)
March 16, 2018 at 8:08 |
Andreas Maurer
Andreas Maurer
I remember thinking that 12 years ago!
I tried to incorporate your code into a standalone html doc (apart from the jquery lib) but my js knowledge is not up to the job. Can you see where I've gone wrong? Your code is between a window.load function, and I've also tried using a paragraph with the output id instead of a div, to no avail.
https://pastebin.com/3AwUQLqa
I tried to incorporate your code into a standalone html doc (apart from the jquery lib) but my js knowledge is not up to the job. Can you see where I've gone wrong? Your code is between a window.load function, and I've also tried using a paragraph with the output id instead of a div, to no avail.
https://pastebin.com/3AwUQLqa
March 18, 2018 at 3:54 |
Chris
Chris
Just to add, I spotted I missed the closing tag from the jquery, added that now, but still no luck.
Cheers.
Cheers.
March 18, 2018 at 4:00 |
Chris
Chris
Hi Chris,
load() does not do what you think it does - http://api.jquery.com/load/
Just replace the line
$(window).load(function(){
with
$(function(){
and it will work.
load() does not do what you think it does - http://api.jquery.com/load/
Just replace the line
$(window).load(function(){
with
$(function(){
and it will work.
March 18, 2018 at 21:05 |
Andreas Maurer
Andreas Maurer
While I was at it again, I modified the script so it doesn't need jQuery at all - I was just lazy when I wrote it.
https://pastebin.com/0uPFHC36
https://pastebin.com/0uPFHC36
March 18, 2018 at 21:17 |
Andreas Maurer
Andreas Maurer
Thanks Andreas, I was so close! With the JQuery reliance gone it's a really handy standalone tool for creating my simple text calendar format, what with the ability to change languages and date ranges. I expect this thread will get referenced on and off over the years if people are looking for a simple calendar as part of a simple digital approach.
Regards,
Chris
Regards,
Chris
March 18, 2018 at 22:08 |
Chris
Chris
Here it is in Google Sheets.
https://docs.google.com/spreadsheets/d/15SpZOWckKCmqnWxUhUHx-nTjYs7CNo5BOwQ5nj9U1O8/edit?usp=sharing
First sheet is the formulae, with just a few rows, with two options: Single row or multiple row. The second sheet is 2018-2030. It takes a minute or two to calculate almost 5000 rows.
https://docs.google.com/spreadsheets/d/15SpZOWckKCmqnWxUhUHx-nTjYs7CNo5BOwQ5nj9U1O8/edit?usp=sharing
First sheet is the formulae, with just a few rows, with two options: Single row or multiple row. The second sheet is 2018-2030. It takes a minute or two to calculate almost 5000 rows.
March 19, 2018 at 17:01 |
Cricket
Cricket





https://pastebin.com/qXMTviLF (click download)
After many years I am still using this as my calendar. I had been storing it in a Google Doc and using my web browser on the Mac and the Google Docs app on the iPhone to edit it. Since last year I've switched to using Apple's vastly improved built-in Notes app. It works very cleanly and reliably and has a raft of useful yet simple features such as checklists, images and sketches.
Changes I make on the Macs, iPhone or iPad are synced within seconds to the other devices. For extra reliability I've split the calendar into a separate Note for each year as that means there's much less to sync with each change. I sort my Notes by Title and also use a monospaced font which makes it look very tidy. If you're an Apple user and not played with Notes since last year give it a whirl, you'll like it.
Regards,
Chris