Click here to Skip to main content
15,893,588 members
Home / Discussions / C#
   

C#

 
QuestionXML Serialization, Xpath and SelectNodes Pin
Member 1093483614-Oct-14 22:11
Member 1093483614-Oct-14 22:11 
AnswerRe: XML Serialization, Xpath and SelectNodes Pin
Gerry Schmitz15-Oct-14 10:43
mveGerry Schmitz15-Oct-14 10:43 
QuestionC # application launch problem by connecting with a database Informix ODBC. Pin
Ibrahim.elh14-Oct-14 20:47
Ibrahim.elh14-Oct-14 20:47 
AnswerRe: C # application launch problem by connecting with a database Informix ODBC. Pin
Manfred Rudolf Bihy15-Oct-14 0:34
professionalManfred Rudolf Bihy15-Oct-14 0:34 
QuestionC# Pin
Member 1114850614-Oct-14 19:04
Member 1114850614-Oct-14 19:04 
AnswerRe: C# Pin
OriginalGriff14-Oct-14 20:10
mveOriginalGriff14-Oct-14 20:10 
GeneralRe: C# Pin
BillWoodruff14-Oct-14 22:02
professionalBillWoodruff14-Oct-14 22:02 
GeneralRe: C# Pin
OriginalGriff14-Oct-14 22:10
mveOriginalGriff14-Oct-14 22:10 
GeneralMy Vote of one Pin
Wayne Gaylard14-Oct-14 22:28
professionalWayne Gaylard14-Oct-14 22:28 
AnswerRe: C# PinPopular
BillWoodruff14-Oct-14 20:40
professionalBillWoodruff14-Oct-14 20:40 
QuestionI want a project in c#.net Pin
Irfan Ullah14-Oct-14 8:56
Irfan Ullah14-Oct-14 8:56 
AnswerRe: I want a project in c#.net Pin
BillWoodruff14-Oct-14 9:04
professionalBillWoodruff14-Oct-14 9:04 
QuestionRe: I want a project in c#.net Pin
ZurdoDev14-Oct-14 9:19
professionalZurdoDev14-Oct-14 9:19 
AnswerRe: I want a project in c#.net Pin
OriginalGriff14-Oct-14 20:07
mveOriginalGriff14-Oct-14 20:07 
QuestionChange the datetime variable output to a specific format Pin
nitin_ion14-Oct-14 7:40
nitin_ion14-Oct-14 7:40 
QuestionRe: Change the datetime variable output to a specific format Pin
Kornfeld Eliyahu Peter14-Oct-14 7:44
professionalKornfeld Eliyahu Peter14-Oct-14 7:44 
AnswerRe: Change the datetime variable output to a specific format Pin
nitin_ion14-Oct-14 8:03
nitin_ion14-Oct-14 8:03 
AnswerRe: Change the datetime variable output to a specific format Pin
Kornfeld Eliyahu Peter14-Oct-14 8:06
professionalKornfeld Eliyahu Peter14-Oct-14 8:06 
GeneralRe: Change the datetime variable output to a specific format Pin
nitin_ion14-Oct-14 8:12
nitin_ion14-Oct-14 8:12 
SuggestionRe: Change the datetime variable output to a specific format PinPopular
Kornfeld Eliyahu Peter14-Oct-14 8:23
professionalKornfeld Eliyahu Peter14-Oct-14 8:23 
GeneralRe: Change the datetime variable output to a specific format Pin
Dave Kreskowiak14-Oct-14 12:57
mveDave Kreskowiak14-Oct-14 12:57 
nitin_ion wrote:
I want the DateTime it self to return in the specific format and not as string


There is no such thing!

What you see on screen is ALWAYS a string representation of the data in a DateTime structure. There is NO FORMAT in a DateTime value. It is just a bunch of numbers that represents a Date/Time. The only way you get to see the value is if it is converted to some string format. That format is anything you chose.

Now, if you're looking in Visual Studio, it uses the systems culture information as a default format.


Now, if you stored your Dates in your database as a string, you SERIOUSLY screwed yourself. DateTime should ALWAYS be stored in the database as a DateTime type, NEVER as a string.

Why? Because because as a string representation, any DateTime comparisons or lookups will be done using character string rules, NOT DateTime rules. The two sets of rules are work very differently from each other.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

AnswerRe: Change the datetime variable output to a specific format Pin
Eddy Vluggen14-Oct-14 8:11
professionalEddy Vluggen14-Oct-14 8:11 
AnswerRe: Change the datetime variable output to a specific format Pin
V.14-Oct-14 21:54
professionalV.14-Oct-14 21:54 
QuestionIssue with visual studio 2013 profiler : Bottom of stackfunction Pin
Member 1112014714-Oct-14 6:41
Member 1112014714-Oct-14 6:41 
QuestionFCL C# source code Pin
Member 1115157113-Oct-14 22:10
Member 1115157113-Oct-14 22:10 

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.