Please help me parse and format date. Details in the post w/screenshots

Hi All,

I am very new to low-level code and don’t have any coding background.

I am trying to convert a string of date “1.Due_Diligence_Date” in format like 27 Apr 2024 to date and then set it in a Google calendar in the ISO format it wants it in.

So far, I have set the following:

  1. webhook correctly so it passes the values namely “1.Due_Diligence_Date”. Output is 27 Apr 2024.
  2. Set variable tool. I have added this {{parseDate(1.Due_Diligence_Date; " dd MMM yyyy")}} //failing at this step//. Error below:
  3. Set variable tool to format date. //didnt get to this step yet.



Welcome to the Make community!

I think you accidentally included a space character before your date format (before the dd).

3 Likes

@samliew i changed it but i seem to still face the same problem. I created a new scenario to test.

blueprint.json (4.0 KB)

If you need further assistance, please provide the following:

Please also provide the output bundles of the Webhook trigger module by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

This will allow others to better assist you. Thanks!

samliewrequest private consultation

1 Like