Flow inline script to convert datetime field to string

CV1
Tera Contributor

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

2 REPLIES 2

AnveshKumar M
Tera Sage
Tera Sage

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.

Thanks,
Anvesh

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