Solved

DateTime.Now.ToString("YYMMDD")  into Label

Posted on 2008-09-30
1
2,223 Views
Last Modified: 2013-12-17
I'm trying to pass a timestamp into a label  I already have one of the labels working correctly with this code:

this.lbl_time.Text = DateTime.Now.ToString("HHMM");

I would like to do this same for a lvl_date...  I thought it would be as simple as:

this.lbl_date.Text = DateTime.Now.ToString("YYMMDD");

Nope.  Any help?  Thank you again for your help!
0
Comment
Question by:ReganJ03
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
p_davis earned 500 total points
ID: 22606290
ToString("yyMMdd")
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question