I've just posted a new blog entry with a tutorial showing how you can pass parameters into variables.
This opens up a number of opportunities for code re-use, and allows code to be tidied up - particularly in the load script.
Examples are given of how you can use this technique to convert and format dates in your load script.
There is also a full example of how you can create a variable that allows you to calculate the number of working days between two dates, excluding weekends and public holidays. This variables uses the NetworkDays function, and takes a list of public holidays from a spreadsheet, so it can be updated without having to modify the code.