Hi Guys,
In C#,
How to print time format like this that UTC time + 10.00 as Australia time with day light saving
2022-09-23T09:23:57+10:00
if day light means
2022-09-23T09:23:57+11:00
thanks in advance
with regards,
saravana
Hi Guys,
In C#,
How to print time format like this that UTC time + 10.00 as Australia time with day light saving
2022-09-23T09:23:57+10:00
if day light means
2022-09-23T09:23:57+11:00
thanks in advance
with regards,
saravana
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Sep 23, 2022, 8:48 AM EDT
if the computer is not configured for Australia time, you will want to use TimeZoneInfo.FindSystemTimeZoneById("AUS Eastern Standard Time") for time conversions
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Sep 23, 2022, 9:06 AM EDT
In C#, following code will give you the UTC format:
string text = yourDate.ToString("s");UTC time format does not have a timezone, so it wouldn't be but this will add it:
string text = yourDate.ToString("yyyy-MM-ddTHH:mm:ssK");