Está en la página 1de 1

/*

var aDay = [""];


if (ip_day.indexOf("/") > 0) { // This is the standard browsersetting
aDay = ip_day.split("/");
aDay.forEach(function(element, index) {
if(index == 0 || index == 1){
if(element.length==1){
aDay[index] = "0"+element;
}
}
});
s_date = aDay[2]+ aDay[0]+aDay[1];
}else if (ip_day.indexOf("-") > 0) { // User has changed his browsersetting
manually to English
APPLICATION.alert("2");
aDay = ip_day.split("-");
aDay.forEach(function(element, index) {
if(index == 0 || index == 1){
if(element.length==1){
aDay[index] = "0"+element;
}
}
});
s_date = aDay[2]+ aDay[1]+aDay[0];
}

i_day = Convert.stringToInt(s_date.substring(6));
i_month = Convert.stringToInt(s_date.substring(4,6));

v_name_month = GLOBAL_SCRIPTS.on_get_name_month(i_month);

return i_day + " de "+ v_name_month;


*/

También podría gustarte