Thanks!
]]>
function convertDates(obj){
if($.isArray(obj)){
convertDatesFromArray(obj);
}
if (isObject(obj)) { //Recursively evaluate nested objects
for(var property in obj) {
var value = obj[property];
if(isObject(value)){
convertDates(value);
}
else if($.isArray(value)){
convertDatesFromArray(value);
}
else if(isString(value) && iso8601RegEx.test(value)){
//If it is a string of the expected form convert to date
obj[property] = new Date(value);
}
}
}
}
function convertDatesFromArray(array){
for (var i=0; i<array.length; i++){
var value = array[i];
if(isObject(value)){
convertDates(value);
}
else if(isString(value) && iso8601RegEx.test(value)){
array[i] = new Date(value);
}
}
}
function isObject(value){
return Object.prototype.toString.call( value ) === "[object Object]";
}
function isString(value){
return Object.prototype.toString.call( value ) === "[object String]";
}
Thanks!
]]>Cheers
]]>I ran across a posting of yours on Stack Overflow in regards to ResourceManager and custom cultures, from back in 2010 or so.
I was wondering if you’d ever found the solution?
I am running into the same problem at the moment, and was hoping you’d stumbled on the answer.
Cheers!
-Jake
]]>ILog is part of the Log4Net framework. It is its top level abstraction for a logger.
]]>If “Custom Tool Namespace” is null, or null string I want to use this namesapce:
Project.Properties.Item(“RootNamespace”).
Else –
It should be whatever the custom tool namespace is
]]>