How to programmatically get my pc timezone offset

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
how can i know and pass my pc timezone offset which i can pass to sql server store proc

see my bit of sql server code

SELECT sysdatetimeoffset(), switchoffset(sysdatetimeoffset(), '-05:00')

here -05:00 is hard coded which is timezone offset. how to get it by c#

the above sql convert one timezone to other timezone based on offset value -05:00

thanks

Continue reading...
 
Back
Top