Skip to content

Instantly share code, notes, and snippets.

@neonankiti
Last active May 31, 2019 02:02
Show Gist options
  • Save neonankiti/7804b50fd0c4811eaf6d89a47795a6d6 to your computer and use it in GitHub Desktop.
Save neonankiti/7804b50fd0c4811eaf6d89a47795a6d6 to your computer and use it in GitHub Desktop.
record working day for sales force system.
var inputTime = (targetYear, targetMonth, targetDay, startTime, endTime) => {
console.log(targetYear, targetMonth, targetDay);
document.getElementById(`ttvTimeSt${moment([targetYear, targetMonth, targetDay]).format('YYYY-MM-DD')}`).click();
if(startTime != ""){
document.getElementById('startTime').value = startTime;
}
if(endTime != ""){
document.getElementById('endTime').value = endTime;
}
document.getElementById("dlgInpTimeOk").click();
}
// ============= Input here ===============//
var year = 2019;
var month = 5;
var targetDay = 29;
var startTime = "11:00" // HH:mm
var endTime = "" // HH:mm
// =========================================//
inputTime(year, month - 1, targetDay, startTime, endTime);
@knao124
Copy link

knao124 commented May 31, 2019

ほんとにそれで、いいのかなぁ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment