Grabbing Specific Date of Workflow/Status Change

I’m working on a print format for an erpnext doctype, but I need to include the date where the record went from status A to status B. Is there any way to fetch this in a print format?