Click here to Skip to main content
15,906,558 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Pls help me i want to connect all the display into one(1).
commmon output:
date today: 07:15:2013 12:00:00

I want the display looks like this. How?

07152013120000
Posted
Comments
Gishisoft 15-Jul-13 2:33am    
07/15/2013 12:00:00
But i want looks like this? how to code this
07152013120000
Gishisoft 15-Jul-13 2:37am    
i know the answer. but i want you to solve it. :) peace!
Thanks7872 15-Jul-13 2:48am    
If you know the answer than why you are posting it here? Dont post puzzles here.
Gishisoft 15-Jul-13 2:38am    
This is my answer.
DateTime.Today.ToString("MMddyyyyhhmmss")

Try this:

C#
txtTest.Text = DateTime.Now.ToString();
txtTest.Text = DateTime.Now.ToString("MdyyyyHHmmss", 
                                     CultureInfo.InvariantCulture);
 
Share this answer
 
Replace your semicolon or slash and spaces with empty...

For replace function,have a look at this..
http://www.dotnetperls.com/replace[^]

else you can do like this
DateTime.Now.ToString("MMddyyyyhhmmss")
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900