Talk2Tom11 Posted February 19, 2005 Posted February 19, 2005 Hey I want to make a label display the date. Like 12/10/05. Something like that. I have code to display current time: sbpTime.Text = System.DateTime.Now.ToString("hh:mm:ss") I was wondering if it was just something close to that. Thanks Quote
Administrators PlausiblyDamp Posted February 19, 2005 Administrators Posted February 19, 2005 sbpTime.Text.Text = DateTime.Now.ToString("dd/MM/yy") 'or use their preference sbpTime.Text.Text = DateTime.Now.ToShortDateString Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.