Created
November 2, 2022 15:03
-
-
Save BetterProgramming/1cc204447693a6df8727e62613c375c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const today = new Date(); | |
const yyyy = today.getFullYear(); | |
let mm = today.getMonth() + 1; // Months start at 0! | |
let dd = today.getDate(); | |
var todayy = new Date(); | |
if (dd < 10) dd = '0' + dd; | |
if (mm < 10) mm = '0' + mm; | |
const formattedToday = mm + '/' + dddd + '/' + yyyy; | |
mylink = "https://www.sagedining.com/microsites/getMenuItems?menuId=110277&date=" + formattedToday + "&meal=Lunch"; | |
console.log(mylink) | |
$.get(mylink); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment