So where would the following fit in my script?

code:
  
$datetime=join(split(@DATE,'\'),'-')+join(split(@TIME,':'),'-')