I'm working on a Google script where it's trying to check if a given time A is between time B and time C: IE:
var A = getCurrentSheet.getRange("P30").getDisplayValue();
//08:40:00 AM
var B = getCurrentSheet.getRange("P31").getDisplayValue();
//04:30:00 AM
var C = getCurrentSheet.getRange("P32").getDisplayValue();
//10:40:00 AM
The goal is to create a logical comparison where:
if(B <= A <= C)
Though I'm having some difficulty figuring out how to get the script to recognize these values as time in terms of HH:mm:ss