Click here to Skip to main content
15,896,912 members
Home / Discussions / C#
   

C#

 
GeneralRe: Virtual Trackpad > WIndows... Pin
Gerry Schmitz10-Feb-17 19:10
mveGerry Schmitz10-Feb-17 19:10 
GeneralRe: Virtual Trackpad > WIndows... Pin
qzzf1w10-Feb-17 19:42
qzzf1w10-Feb-17 19:42 
GeneralRe: Virtual Trackpad > WIndows... Pin
Gerry Schmitz10-Feb-17 19:49
mveGerry Schmitz10-Feb-17 19:49 
GeneralRe: Virtual Trackpad > WIndows... Pin
qzzf1w10-Feb-17 19:50
qzzf1w10-Feb-17 19:50 
QuestionDetermining if a time zone is currently in Daylight Saving Time Pin
TNCaver9-Feb-17 11:14
TNCaver9-Feb-17 11:14 
AnswerRe: Determining if a time zone is currently in Daylight Saving Time Pin
OriginalGriff9-Feb-17 21:33
mveOriginalGriff9-Feb-17 21:33 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
Pete O'Hanlon9-Feb-17 22:52
mvePete O'Hanlon9-Feb-17 22:52 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
OriginalGriff9-Feb-17 23:29
mveOriginalGriff9-Feb-17 23:29 
I suspect it moved it back! Laugh | :laugh:
Try this:
DateTime then = new DateTime(2017, 6, 14, 8, 31, 45);
DateTime utcTime = then.ToUniversalTime();
TimeZoneInfo csttzi = TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time");
DateTime cstTime = TimeZoneInfo.ConvertTime(utcTime, csttzi);
string text = String.Format("IsDaylightSavingTime: {0}", cstTime.IsDaylightSavingTime().ToString());
string officeTime = TimeZoneInfo.ConvertTime(utcTime, csttzi).ToString();

text is "IsDaylightSavingTime: True"
And officeTime is "14/06/2017 02:31:45"
Which is about right given I'm on GMT.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
TNCaver10-Feb-17 9:04
TNCaver10-Feb-17 9:04 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
Richard Deeming10-Feb-17 9:24
mveRichard Deeming10-Feb-17 9:24 
AnswerRe: Determining if a time zone is currently in Daylight Saving Time Pin
Gerry Schmitz9-Feb-17 22:22
mveGerry Schmitz9-Feb-17 22:22 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
TNCaver10-Feb-17 9:26
TNCaver10-Feb-17 9:26 
AnswerRe: Determining if a time zone is currently in Daylight Saving Time Pin
Richard Deeming10-Feb-17 2:34
mveRichard Deeming10-Feb-17 2:34 
GeneralRe: Determining if a time zone is currently in Daylight Saving Time Pin
TNCaver10-Feb-17 9:24
TNCaver10-Feb-17 9:24 
QuestionAndroid Day of Week Calculator Pin
Pavlex49-Feb-17 9:14
Pavlex49-Feb-17 9:14 
AnswerRe: Android Day of Week Calculator Pin
NotPolitcallyCorrect9-Feb-17 9:47
NotPolitcallyCorrect9-Feb-17 9:47 
AnswerRe: Android Day of Week Calculator Pin
Eddy Vluggen9-Feb-17 10:50
professionalEddy Vluggen9-Feb-17 10:50 
AnswerRe: Android Day of Week Calculator Pin
Richard MacCutchan9-Feb-17 21:02
mveRichard MacCutchan9-Feb-17 21:02 
AnswerRe: Android Day of Week Calculator Pin
Gerry Schmitz10-Feb-17 12:55
mveGerry Schmitz10-Feb-17 12:55 
QuestionChange the height PopupMenu ? Pin
Member 24584678-Feb-17 17:58
Member 24584678-Feb-17 17:58 
AnswerRe: Change the height PopupMenu ? Pin
Mycroft Holmes8-Feb-17 20:15
professionalMycroft Holmes8-Feb-17 20:15 
QuestionWCF Transport Security And SSL Pin
Liagapi8-Feb-17 17:34
Liagapi8-Feb-17 17:34 
AnswerRe: WCF Transport Security And SSL Pin
Richard Deeming8-Feb-17 22:06
mveRichard Deeming8-Feb-17 22:06 
QuestionC# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
svpmirashi8-Feb-17 1:51
svpmirashi8-Feb-17 1:51 
AnswerRe: C# : In a Powerpoint slide, Unable to set Play Full Screen / Start Automatically of a Video (Shape) object Pin
Gerry Schmitz9-Feb-17 7:53
mveGerry Schmitz9-Feb-17 7:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.