Click here to Skip to main content
15,905,322 members
Home / Discussions / C#
   

C#

 
QuestionFind available drives in windows vista Pin
Maxim Rubchinsky20-Oct-07 1:17
Maxim Rubchinsky20-Oct-07 1:17 
AnswerRe: Find available drives in windows vista Pin
ekynox20-Oct-07 12:49
ekynox20-Oct-07 12:49 
QuestionProperties Window in windows programming~ [modified] Pin
SeeBees20-Oct-07 0:17
SeeBees20-Oct-07 0:17 
AnswerRe: Properties Window in windows programming~ Pin
Anthony Mushrow20-Oct-07 3:39
professionalAnthony Mushrow20-Oct-07 3:39 
GeneralRe: Properties Window in windows programming~ Pin
SeeBees20-Oct-07 12:56
SeeBees20-Oct-07 12:56 
QuestionDate Format Pin
mpavas19-Oct-07 23:29
mpavas19-Oct-07 23:29 
AnswerRe: Date Format Pin
Luc Pattyn20-Oct-07 0:11
sitebuilderLuc Pattyn20-Oct-07 0:11 
AnswerRe: Date Format Pin
Guffa20-Oct-07 1:05
Guffa20-Oct-07 1:05 
mpavas wrote:
In my application the date is stored in the table in dd/MM/YYYY.


First of all, you should store the date as a date in the database, not text.

If you do store it as a date, it's not stored in any format at all. A date value never has a format, it's only when you render it as a string that it gets a format.

When you render the date as a string, you can specify a CultureInfo or DateTimeFormatInfo object to use, which specifies the culture or format. You can also specify an exact format string to use.

mpavas wrote:
I have seen lot of example but they all start with current date time.


Yes, that's how most examples are written. They demonstrate how a method works, you just have to apply the same method to the data that you have.

---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams

GeneralRe: Date Format Pin
mpavas20-Oct-07 1:06
mpavas20-Oct-07 1:06 
QuestionHow To Load Assembly Pin
Mohamed Yahia19-Oct-07 23:06
Mohamed Yahia19-Oct-07 23:06 
QuestionHow to do network Diagnostic Pin
jason_mf19-Oct-07 22:43
jason_mf19-Oct-07 22:43 
QuestionRegex -- Replace first match only? Pin
bs999919-Oct-07 18:20
bs999919-Oct-07 18:20 
AnswerRe: Regex -- Replace first match only? Pin
Guffa19-Oct-07 20:46
Guffa19-Oct-07 20:46 
QuestionDrag Event Pin
MasterSharp19-Oct-07 14:55
MasterSharp19-Oct-07 14:55 
AnswerRe: Drag Event Pin
Ravi Bhavnani19-Oct-07 16:39
professionalRavi Bhavnani19-Oct-07 16:39 
GeneralRe: Drag Event Pin
MasterSharp19-Oct-07 16:50
MasterSharp19-Oct-07 16:50 
AnswerRe: Drag Event Pin
Ravi Bhavnani19-Oct-07 16:57
professionalRavi Bhavnani19-Oct-07 16:57 
AnswerRe: Drag Event [modified] Pin
Mike Hankey20-Oct-07 10:33
mveMike Hankey20-Oct-07 10:33 
Questionline to mouse Pin
MasterSharp19-Oct-07 11:23
MasterSharp19-Oct-07 11:23 
AnswerRe: line to mouse Pin
led mike19-Oct-07 11:37
led mike19-Oct-07 11:37 
GeneralRe: line to mouse Pin
MasterSharp19-Oct-07 11:50
MasterSharp19-Oct-07 11:50 
GeneralRe: line to mouse Pin
Luc Pattyn19-Oct-07 12:03
sitebuilderLuc Pattyn19-Oct-07 12:03 
GeneralRe: line to mouse Pin
MasterSharp19-Oct-07 12:06
MasterSharp19-Oct-07 12:06 
Questionhow to sort an int arraylist Pin
Daniel_Logan19-Oct-07 11:10
Daniel_Logan19-Oct-07 11:10 
AnswerRe: how to sort an int arraylist Pin
garyshort19-Oct-07 11:32
garyshort19-Oct-07 11:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.