|
@@ -1184,7 +1184,9 @@ function itp_fn_get_today_ko(split) {
|
1184
|
};
|
1184
|
};
|
1185
|
|
1185
|
|
1186
|
function itp_fn_get_before_month(dateStr, addMonth, split) {
|
1186
|
function itp_fn_get_before_month(dateStr, addMonth, split) {
|
|
|
1187
|
+ if (!addMonth) addMonth=1;
|
1187
|
if (split == null || split == undefined) split = '.';
|
1188
|
if (split == null || split == undefined) split = '.';
|
|
|
1189
|
+ if (dateStr == null || dateStr == undefined) dateStr = itp_fn_get_today_ko();
|
1188
|
dateStr = itp_fn_delete_date_format(dateStr);
|
1190
|
dateStr = itp_fn_delete_date_format(dateStr);
|
1189
|
var yyyy = dateStr.substring(0,4),
|
1191
|
var yyyy = dateStr.substring(0,4),
|
1190
|
mm = parseInt(dateStr.substring(4,6), 10),
|
1192
|
mm = parseInt(dateStr.substring(4,6), 10),
|
|
@@ -1200,7 +1202,9 @@ function itp_fn_get_before_month(dateStr, addMonth, split) {
|
1200
|
};
|
1202
|
};
|
1201
|
|
1203
|
|
1202
|
function itp_fn_get_after_month(dateStr, addMonth, split) {
|
1204
|
function itp_fn_get_after_month(dateStr, addMonth, split) {
|
|
|
1205
|
+ if (!addMonth) addMonth=1;
|
1203
|
if (split == null || split == undefined) split = '.';
|
1206
|
if (split == null || split == undefined) split = '.';
|
|
|
1207
|
+ if (dateStr == null || dateStr == undefined) dateStr = itp_fn_get_today_ko();
|
1204
|
dateStr = itp_fn_delete_date_format(dateStr);
|
1208
|
dateStr = itp_fn_delete_date_format(dateStr);
|
1205
|
var yyyy = dateStr.substring(0,4),
|
1209
|
var yyyy = dateStr.substring(0,4),
|
1206
|
mm = parseInt(dateStr.substring(4,6), 10),
|
1210
|
mm = parseInt(dateStr.substring(4,6), 10),
|