extract date or time from a peoplecode datetime variable (peoplecode)