Merge pull request #21977 from scmmishra/work-order-fix-datetime

fix: use get_datetime instead of getdate