© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
7 replies
Dusty

✅ Set TimeZone for request duration in ASP.NET Core

Hey,

I am generating PDFs on the server with
DateTime
DateTime
objects. The problem is that my clients come from several different time zones and want the PDF to be generated in their own time zone.

Question:
How do I convert the
DateTime
DateTime
object to a string using the time zone of the client?

Should I just send the browsers time zone as query parameter or are there better approaches?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Database In ASP.Net Core
C#CC# / help
14mo ago
❔ ASP.NET to .net Core
C#CC# / help
3y ago
Web Api request in asp.net core mvc project
C#CC# / help
3y ago