Hi to everyone,
I need to create a calendar event for TODAY + HH:mm
where HH:mm are the hours and minutes taken from an input dialog.
I don't understand which variable is filled with the input dialog values when I use "time" as the input dialog type,
and I don't know the grammar on the "create new calendar event" to set the TODAY+"time" .
Any help? thank you in advice!
Create calendar event using input dialog
Moderator: Martin
- digitalstone
- Posts: 342
- Joined: 21 Oct 2017 12:36
- Location: The Netherlands
Re: Create calendar event using input dialog
I would say this would get you somewhere:
Depends also on in what type of textual field you're typing this into.
In a text-field you would type the exact code from above.
In script form it's slightly different (which still kind of confuses me to this day to be honest):
Code: Select all
{getDate(),dateformat, dd-MM-yyy HH:mm}
In a text-field you would type the exact code from above.
In script form it's slightly different (which still kind of confuses me to this day to be honest):
Code: Select all
getDate("{getDate(),dateformat,dd-MM-yyy HH:mm}", "dd-MM-yyy HH:mm");
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)
Re: Create calendar event using input dialog
Hi,
The input dialog provides the selected time in form of a full date+time where the date part is set to today. This is probably what you want so you don't need to add anything at all.
In action Create Calendar Event just use Start/End Type Absolute and enter value in the From-field and something like value+60*60*1000 in the To-field (60*60*1000 is one hour in milliseconds).
Regards,
Martin
The input dialog provides the selected time in form of a full date+time where the date part is set to today. This is probably what you want so you don't need to add anything at all.
In action Create Calendar Event just use Start/End Type Absolute and enter value in the From-field and something like value+60*60*1000 in the To-field (60*60*1000 is one hour in milliseconds).
Regards,
Martin
Re: Create calendar event using input dialog
Thank you guys,
so "value" was my lucky word (it's easy to find it on the help section after I get the hint!
)
It works pecrfectly.
so "value" was my lucky word (it's easy to find it on the help section after I get the hint!

It works pecrfectly.