I have a C# .NET Windows application. I am using the Partner API to interact with Salesforce. I want to get the current date and time based on logged in user's timezone in my .NET Windows application.
Basically, in my Windows application, I am fetching data from Salesforce using the API and printing that data into a Word file. In the Word file, I want the current date and time to display, but the current date and time should be based on the Salesforce User's timezone.