0

I have searched the method here but there is no case for me.

Is there functionality to convert from UTC time to local time using country name from excel ?

Example :

string CurrtTime = DateTime.UtcNow.ToString("yyyy-MM-dd HH:mm:ss");

I would like to create a variable for localtime which receive value ( country name ) from Excel. How to do ?

string localtimenow = ____________.(CurrtTime).(Thailand)
string localtimenow2 = ____________.(CurrtTime).(Australia)

Expected results.

UTC TIME => yyyy-MM-dd 08:18:xx

BKK TIME => yyyy-MM-dd 15:18:xx

SYD TIME => yyyy-MM-dd 18:18:xx

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364

0 Answers0