Solved

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

Posted on 2008-09-30
1
2,216 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
1 Comment
 
LVL 22

Accepted Solution

by:
p_davis earned 500 total points
Comment Utility
ToString("yyMMdd")
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now