Trying to get date posted to function using @loganarnett 's code.