Ferranti DateTime Conversion to Date
IIF (b.bilstartdate = '0','0',CONVERT(VARCHAR(12),DATEADD(day, -2, (36526+(LEFT( b.bilstartdate
+ 288000000000,11)-63082281600)/(24*3600))),5) )as startdate
function disableCtrlKeyCombination(e) { //list all CTRL + key combinations you want to disable var forbiddenkeys = new Array('a', 'n', 'c', 'x', 'v', 'j', 'p'); var key; var isCtrl; if(window.event) { key = window.event.keyCode; //IE if(window.event.ctrlKey) isCtrl = true; else isCtrl = false; } else { key = e.which; //firefox if(e.ctrlKey) isCtrl = true; else isCtrl = false; } //if ctrl is pressed check if other key is in forbidenKeys array if(isCtrl) { for(i=0; i<forbiddenkeys.length; i++) { //case-insensitive comparation if (forbiddenkeys[i].toLowerCase() == String.fromCharCode(key).toLowerCase()) { alert("Key combination CTRL + " +String.fromCharCode(key) +" has been disabled."); return false; } } } return true; } var oEventUtil = new Object(); oEventUtil.AddEventHandler = function (oTarget, sEventType, fnHandler) { if (oTarget.addEventListener) { oTarget.addEventListener(sEventType, fnHandler, false); } else if (oTarget.attachEvent) { oTarget.attachEvent('on' + sEventType, fnHandler); } else { oTarget['on' + sEventType] = fnHandler; } } var oTB = function () { document.getElementById("TextBox1").focus(); }
public static List> BreakIntoChunks
(List list, int chunkSize) { if (chunkSize <= 0) { throw new ArgumentException("chunkSize must be greater than 0."); } List > retVal = new List
>(); while (list.Count > 0) { int count = list.Count > chunkSize ? chunkSize : list.Count; retVal.Add(list.GetRange(0, count)); list.RemoveRange(0, count); } return retVal; }