How to set Date and time separately for a date time field in a creatio?
Hi,
I have a Reminder(Date/Time) field in an entity. I need to send notification to user at 'Reminder' time.
To set 'reminder' field, I have to get the 'Date' from a field on the entity and on that 'Date' I need to set 'Time' which I would pull from a lookup.
How can we send notification at the 'Date' and 'Time' pulled seperately?
Like
Hello,
To separate Date and Time you need to use the script task. Here is the example. I have activity with time 11-30 PM in reminding time

I will be using it with this process. First create required parameters

Next, the process elements settings are as follows:
1.

2.

3.

Here is the full script text:
DateTime dateTimeValue = Get<DateTime>("DateTimeParameter");
string hourString = dateTimeValue.Hour.ToString();
string minuteString = dateTimeValue.Minute.ToString();
string resultString = $"{hourString}:{minuteString}";
Set<string>("ResultString", resultString);
return true;
4.



and the result:

Regards,
Dean