string strGuiDate = "14.03.2008"; CultureInfo guiCulture = new CultureInfo("fi-FI"); guiCulture.DateTimeFormat.DateSeparator = "."; DateTime datetime = DateTime.Parse(strGuiDate, guiCulture); CultureInfo dbCulture = new CultureInfo("en-US"); dbCulture.DateTimeFormat.DateSeparator = "-"; string strDbTime = datetime.ToString("yyyy-MM-dd"); logger.Debug("strDbTime is " + strDbTime); DateTime datetime1 = datetime.AddDays(1.0); string strDbTime1 = datetime1.ToString("yyyy-MM-dd"); logger.Debug("strDbTime1 is " + strDbTime1);
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 week ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!