473,386 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How do I get a dattime format in C# that will look like this:

xarzu
88 64KB
How do I get a dattime format in C# that will look like this:

2011-09-01 00:00:00:000
Sep 22 '11 #1
1 1095
arie
64
Expand|Select|Wrap|Line Numbers
  1. DateTime date = DateTime.Now;
  2. string strDate = date.ToString("yyyy-MM-dd HH:mm:ss:fff");
http://www.geekzilla.co.uk/View00FF7...59AA20581F.htm
Sep 22 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Stuart McGraw | last post by:
I am looking for a VBA "format" or "template" function, that is, a function that takes a format string and a varying number of arguments, and substitutes the argument values into the format string...
7
by: Tim Rogers | last post by:
Hi folks, this is a resolution-detect script that I used on a site. As you can see it is designed to detect when the screen resolution falls below a certain level then load an alternative style...
2
by: Jason Huang | last post by:
Hi, I am using the Microsoft Visual Studio 2005 for my C# web application. However, the outlook doesn't look well. I am trying to put 2 DetailsViews side by side, but have no luck. I'm...
6
iWillLiveforever
by: iWillLiveforever | last post by:
If no one does and you want the answer you'll end up kicking youself after you hear it. What does the word Racecar, and the number 1284821 have in common?
7
by: riceking | last post by:
Is it possible to do the following and if so, how? In one table, I have a list of email addresses I know are bad and no longer work. Another table has a list of companies with contact people,...
5
by: kirk | last post by:
I guess the easiest way to describe what I need for output is to give some examples. The biggest rule is the number cannot be larger than 3 digits after the formatting. --examples-- before:...
2
by: Max58kl | last post by:
Hi I have a form with - 13 text input fields 1 text area 2 radio buttons 4 buttons 1 check box 1 submit button
4
by: buddyr | last post by:
Hello, I am not sure here. computers have microsoft.net framework1.1.4322 and microsoft.net framework 2.0 I have .exe file on pc to connect to a form connected to a microsoft...
2
by: ratinox | last post by:
This is the code i was working on. i know it is clunky but im new to this. at the spot that sais RIGHT HERE i am getting this error statement when i try to run it: when casting from a number the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.