Skip to main content

I need the date output in a GI to be yyyy/mm/dd for a third party integration but we use mm/dd/yyyy as a default. How can I flip this around?

Hi @ebaker  We can do with the below formula. 

=Concat( CStr(Year(rSOOrder.OrderDate])) , Cstr('/') ,  CStr(Month( hSOOrder.OrderDate])) , Cstr('/') ,  CStr(Day(DSOOrder.OrderDate])))

 

Also attached screenshot for reference.

 


Hi @ebaker  You can also try with the below formula, which can add the 0 before the DATE and MONTH if the value is less than 10

 

Concat( CStr(Year(rSOOrder.OrderDate])) , Cstr('/') , 
IIf(Month(tSOOrder.OrderDate]) < 10, '0'+CStr(Month(tSOOrder.OrderDate])), CStr(Month(tSOOrder.OrderDate]))) , Cstr('/') ,  
 IIf(Day((SOOrder.OrderDate]) < 10, '0'+CStr(Day((SOOrder.OrderDate])), CStr(Day((SOOrder.OrderDate]))))

 

 


Reply