summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 11d4582..8f27756 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -886,6 +886,13 @@ parse_date(const char *date_string, enum datefmt datefmt, int *year,
return 1;
}
+int
+parse_date_interactive(const char *datestr, int *year, int *month, int *day)
+{
+ return parse_date(datestr, conf.input_datefmt, year, month, day,
+ ui_calendar_get_slctd_day());
+}
+
/*
* Convert a date duration string into a number of days.
*