I am totally new to javascript & I have a challenge from my professor due tonight to create a web page that shows the last three days' worth of pictures in a folder I have.
My professor is mean and won't help me & I'm digging through StackOverflow archives and keep finding similar things, but not exactly what I am trying to do.
If you can help, I will appreciate it.
I have 10 pictures.. all named by their dates (07072016.jpg, 07062016.jpg, 07052016.jpg, etc.). I'd like to display them in three rows (and yes - I looked on W3 and know to use and . But what I can't find is how to dynamically just show the last three dates.
I know logically what steps I'd need to take (get today's date from some function, break it apart, reassemble it so that it's MMddYYYY and then tack on ".jpg" at the end), but no idea how to do it in javascript (or anything else that I could put in my html shell.
Please help. Thanks.