UDF file in Model Glue

This has just came up on the MG Lists and I thought i should post my solution on how I implement a UDF file in MG1)My UDF file is a component (cfc) on the root of the site. Example UDF:

2)Then in my controller (in the onRequestStart):

3)On my view page I have
Then to call a function#udf.getDateTime()#