new code for processing dates

code change for  processing dates, now full-time dates working