我有一个需要添加HH:MM格式值的源,返回格式也应为HH:MM。关键是-我可能还会收到-ve时间值。下面是我的示例:
结果应以小时为HH:MM格式显示按员工分组。
<Employees>
<Employee>
<Amount>#1,424.85</Amount>
<EmployeeID>1</EmployeeID>
<Name>Bob</Name>
<Surname>Shibob</Surname>
<Hours>-24:20</Hours>
</Employee>
<Employee>
<Amount>#(1,424.85</Amount>
<EmployeeID>1</EmployeeID>
<Name>Bob</Name>
<Surname>Shibob</Surname>
<Hours>-56:00</Hours>
</Employee>
<Employee>
<Amount>#70</Amount>
<EmployeeID>2</EmployeeID>
<Name>Sara</Name>
<Surname>Lee</Surname>
<Hours>-2:39</Hours>
</Employee>
</Employees>