Weekday Function


Is there any function available in Blue Prism that is equivalent to Weekday? If not, any idea how to achieve this? Basically, I'm trying to find the date for the last Friday in a month. But, to in order to generalise it more so that it would find any weekday in a month, I'll be passing the weekday name.