Here are some quick conversion methods between time values represented by Integer and DateTime data…