DateToString
This function converts a date to a custom format.
Example:
select config.DateToString(GETDATE(),'yyyy!MM!dd')
2022!10!10