Fix load path type
Move date insertion function into simple package