Sam E

Sam E

  • 1.6k
  • 272
  • 6.2k

How to add the time zone besides to time stamp

Mar 3 2020 12:14 AM
Hello Members,
 
Hope you are doing good!!
 
Here i am trying to print the date and time with time zone, But not getting the time zone..
 
public static String GetTimestamp(DateTime value)
{
return string.Format("{0:MMM-dd-yyyy hh:mm tt}", value);
}
Besides to Time stamp we need to get the time zone...
 
 
 
Can any one guide me here...
Thank you in advance!! 

Answers (11)