Skip to content

Instantly share code, notes, and snippets.

@BetterProgramming
Created November 2, 2022 15:03
Show Gist options
  • Save BetterProgramming/1cc204447693a6df8727e62613c375c5 to your computer and use it in GitHub Desktop.
Save BetterProgramming/1cc204447693a6df8727e62613c375c5 to your computer and use it in GitHub Desktop.
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