How to format time to duration of time in user input for dataset collection

@ahmadnasriya

I am getting a parsing error unexpected token with this line: $w( ‘#dataset1’ ).setFieldValue(searchBar: result);

On this line I am getting cannot use await outside of async function:
await wixData.query( ‘collection’ ).find().then((result) => {