localp={}localargs={}--Takes a string and splits it based on a specified delimiterfunctionSplit(s,delimiter)result={};formatchin(s..delimiter):gmatch("(.-)"..delimiter)dotable.insert(result,match);endreturnresult;endfunctionp.test(date2)returndate2endreturnp[1]