Chris Johnson

Chris Johnson

  • NA
  • 41
  • 4k

Concatenate Or Mid in a template Fieild

Mar 11 2021 12:11 PM
Hi all.
 
I'm connecting to an iSeries machine where the date looks like the following. "1210311"
 
So I wish to use a template field and use Simlar to =Concatonate Mid(Date,6,2) + "/" + Mid(Date,4,2) + "/" etc etc.
I know how to add two fields together with
 
<%# Convert.ToInt32(Eval("Field1"))+Convert.ToDouble(Eval("Field2")) %> for example.
 
How can I use Concatenate and Mid or is there another way?

Answers (1)