Currency and date format in array

Hello, so I have a GROUP_CONCAT row I get from MySQL divided using “,”

The problem is that I want to apply the format and date currency but it won’t work, because it’s trying to apply the format in an array, not in individual values.

This is my table (the problem is in the Fechas and Creditos columns):

This is my table code:

> <table class="table table-bordered table-hover">
> 					<thead>
> 						<tr>
> 							<th>UF</th>
> 							<th>Unidad</th>
> 							<th>Nombre</th>
> 							<th>Saldo</th>
> 							<th>Fechas</th>
> 							<th>Creditos</th>
> 							<th>Total</th>
> 						</tr>
> 					</thead>
> 					<tbody is="dmx-repeat" dmx-generator="bs4table" dmx-bind:repeat="GetReconocidosCreditos.data.custom1" id="tableRepeat2">
> 						<tr>
> 							<td dmx-text="cod"></td>
> 							<td dmx-text="unidad"></td>
> 							<td dmx-text="nombre"></td>
> 							<td dmx-text="SaldoExpensa.formatCurrency('$ ',',','.' , '2')"></td>
> 							<td dmx-html="Fechas.replace(',', '<br>')"></td>
> 							<td dmx-html="Creditos.replace(',', '<br>')"></td>
> 							<td dmx-text="Total.formatCurrency('$ ',',','.' , '2')" dmx-class:text-success="(Total == SaldoExpensa)"></td>
> 						</tr>
> 					</tbody>
> 				</table>