If a component has a Date property then import the chrono module and use chrono::DateTime for properties of type Date. chrono::DateTime::to_string seems to return a string which can be successfully parsed by the JS Date constructor so hydration of the raw output should work just fine.
If a component has a
Date
property then import the chrono module and usechrono::DateTime
for properties of typeDate
.chrono::DateTime::to_string
seems to return a string which can be successfully parsed by the JSDate
constructor so hydration of the raw output should work just fine.