Apologies if this has been answered adequately elsewhere, I just can't seem to piece together the solution from the many existing posts regarding unix conversions. I have built a crude Blazor server-side weather forecast app that calls a weather forecast API and returns a seven-day forecast, with each day distinguished by an unix, utc format date (ex:{"dt":1631293200}). I have been able to successfully display the results from the call as follows:
<tbody>
@foreach (var w in forecast.daily)
{
<tr>
<td>@w.dt</td>
<td>@w.temp?.min F°</td>
<td>@w.temp?.max F°</td>
<td>@w.temp?.day F°</td>
</tr>
}
</tbody>
Is there a simple way I can translate that "dt" result into a more recognizable date, like, "Friday, Sept 13th" or "09/13/21", in a Blazor server-side app using C#?