Hi all,
Needing some advice regarding an expression for a date field.
An expression used in a flow to populate an invoice date field (field a), with a date from another record (field b) is populating the day prior to what is expected for 'field b'. I believe it is one day prior, as our time zone is 10 hours ahead of the UTC time zone - so when populating 'now' I would generally write as ... ... ... addhours(utcNow(), 10) . This makes me think that the 'field a' & 'field b' situations means that I need to apply this addhours function to the expression that I'm writing.
The expression I've used which is populating the 'field a' is:
formatDateTime(body('Get_Field_b_Date_for_Invoice')?['ec_date'], 'yyyy-MM-dd')
When I tried to add the 10 hours in there, I keep getting an Invalid Expression. Updated invalid expression:
formatDateTime(addhours(body('Get_Field_b_Date_for_Invoice')?['ec_date'], '10')'yyyy-MM-dd')
Any feedback is appreciated.
T.