org-get-cursor-date
org-get-cursor-date is a compiled Lisp function in `org.el
'.
(org-get-cursor-date &optional WITH-TIME)
Return the date at cursor in as a time.
This works in the calendar and in the agenda, anywhere else it just
returns the current time.
If WITH-TIME is non-nil, returns the time of the event at point (in
the agenda) or the current time of the day.