Flow inline script to convert datetime field to string
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2023 09:58 PM
Hi all,
Have a flow to create/update record for Table (A) when data in Table(B) is created /updated.
Table (B) has 3 fields that are string where as Table (A) fields are datetime.
Looking for inline flow script to achieve this.
Table (A)
Regularstop - String
Regularstart - string
Regularhours - string
Table(B)
start - datetime
stop-datetime
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2023 12:47 AM
Hi @CV1
You can simply append an empty string to that value like this gr.start + '' and gr.stop + '' to convert them in to a string format.
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 12:58 PM
Hi Anvesh,
I need the format to be like say 9 hours 30 mits
how to format.toString() to get data like x hours x mits