Hello Mthunzi.
I don't think there is any "ready" function to do it.
You can implement one very easy, anyway.
I just uploaded one to forge, so you can use it or adapt it to your needs.
https://www.outsystems.com/forge/Component_Overview.aspx?ProjectId=2928
Cheers,
Eduardo Jauch