GraphGL connector Timestamp output for StartDate, instead of Date

Dear Camunda community.

I am using graphQL connector in my process which expects StartDate variable as timestamp. My form collects StartDate as Date type. How do I corectly convert it into timestamp with FEEL expression to the following format: 2024-09-14T00:00:00

I’ve tried this expressing which haven’t worked:

“StartDate”: date and time(StartDate, time(00, 00, 00))

Hi @Oleksii_Orlov
Give it a try with time(date and time(some_date))
Playgorund

1 Like

Thank you, Alex. My issue was that GraphQL expected seconds 00:00:00, while Camunda gave 00:00 h and m. This is what worked:

date and time(startdate) + duration("PT" + string(now().second) + "S")
1 Like