Label someLabel = //... Button timeButton = //... //... timeButton.Click += (sender, eventArgs) => { System.DateTime now = System.DateTime.Now; someLabel.Text = now.ToString(/* appropriate format specifier */); };
IFormatProvider
CultureInfo
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)