window.postMessage allows for sending data messages between two windows/frames across domains. Essentially window.postMessage acts as cross-domain AJAX between windows/frames.
In this post, we explore the DateOnly and TimeOnly types introduced in the .NET 6 core library for representing dates and times independently.