Assuming todate is required, the following 10 results were found.
{ for each v_MyDay in {1,2,3,4,5,6,7,8} { v_NextMonthDateFirst = v_NextMonthDateFirst.toDate(); v_NextMonthMonday = v_NextMonthDateFirst.addDay(v_MyDay); if(v_NextMonthMonday.getDayOfWeek()==2) { break; } } input.Next_Switch_Date =...
will usually handle the date better. Consider the following: v_TestDate = "07/01/1975"; info v_TestDate; info v_TestDate.toDate(); info v_TestDate.toString("E, d MMM yyyy"); info "*********************"; // // regex change dd/MM/yyyy to yyyy-MM-dd...
{ v_ThisStatus = r_TimeOff.get("ApprovalStatus"); v_ThisFrom = r_TimeOff.get("From").toDate(); v_ThisTill = r_TimeOff.get("To").toDate(); v_ClashOrNot = "NO Clash with "; if(v_ThisStatus!="Cancelled") { if(v_CompareDateFrom = v_ThisFrom ||...
= v_TimeHour + ":" + v_TimeMinutes; // // build map m_CreateTimeLog = Map(); m_CreateTimeLog.put("date",v_StartTime.toDate().toString("MM-dd-yyyy")); m_CreateTimeLog.put("bill_status",v_Billable); m_CreateTimeLog.put("hours",v_HoursHHmm);...
, rb.[ContactName] , rb.[Room] , rb.[BookingNotes] FROM roombookings rb WHERE rb.[GivenDate] BETWEEN @GivenDate AND @ToDate AND rb.[ContactName] LIKE '%@GivenName%' -- WARNING: 0 matching rows This returns nothing. Took me a while to figure why but it's...
must be allowed to select all results between two dates instead of just specifying the one day. If the second parameter (ToDate) is the same as the first (FromDate), then the range is for that particular date. Solution Easy for some but anything that I...
the inevitable single line: Day_Name = ",Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".toList(",").get(My_Date.toDate().getDayOfWeek());
v_RefIndex = 0; for each v_Offset in {1,2,3,4,5,6,7} { v_RefIndex = v_Offset - 1; m_Offset.put(v_StartDate.toDate().addDay(v_RefIndex).toString("d"),v_Offset); } input.Selected_Value = input.Calendar_Day_Select; v_DateOffset =...
m_NewTask.put("Subject","Follow Up Non Converted Lead"); m_NewTask.put("Due_Date",v_EndTime.toDate()); m_NewTask.put("Status","Not Started"); // // configure reminder on task to run daily at the same time as creation time m_Reminder = Map();...
v_SignDate = m_SignDocument.get("requests").get("action_time"); v_SignDate = v_SignDate.toDate("yyyy-MM-dd"); r_Update =...