Click here to Skip to main content
15,887,683 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting a stream of html to xml and reading the xml into a xmldocumet in c# Pin
Richard Deeming8-Nov-12 2:16
mveRichard Deeming8-Nov-12 2:16 
GeneralRe: Converting a stream of html to xml and reading the xml into a xmldocumet in c# Pin
Steve Holdorf10-Nov-12 1:07
Steve Holdorf10-Nov-12 1:07 
GeneralRe: Converting a stream of html to xml and reading the xml into a xmldocumet in c# Pin
Richard Deeming12-Nov-12 1:58
mveRichard Deeming12-Nov-12 1:58 
QuestionVSTO Outlook Visual C# - Create a ribbon that load a windows form integrated into outlook form? Pin
Cristian Capannini7-Nov-12 22:31
Cristian Capannini7-Nov-12 22:31 
QuestionHow to convert string to Datetime including milliseconds Pin
Vijay Kanda7-Nov-12 21:45
Vijay Kanda7-Nov-12 21:45 
AnswerRe: How to convert string to Datetime including milliseconds Pin
Pete O'Hanlon7-Nov-12 22:18
mvePete O'Hanlon7-Nov-12 22:18 
AnswerRe: How to convert string to Datetime including milliseconds Pin
Braj_128-Nov-12 1:23
Braj_128-Nov-12 1:23 
GeneralRe: How to convert string to Datetime including milliseconds Pin
Vijay Kanda8-Nov-12 20:44
Vijay Kanda8-Nov-12 20:44 
Pete, BMS121,
Thank you so much for taking your time to respond to my post... I really appreciate it... but the solution both of you mentioned does not work for my situation... may be I did not state my question clearly... I apologize for that...

Pete, in your solution, you are converting the date to string again... that's not what i want...

And BMS121, I used the 'TimeOfDay' property as you suggested , but I could not assign that to datetime variable... I get compiler error :'Cannot implicitly convert System.TimeSpan to System.Datetime...

This is what I want to accomplish:
I am getting the datetime as a string from client ... so I have to convert that string to datetime including millisecond and then I have to store/save that datetime in the database (the datebase column is datetime type)...

Here is the code snippet:
string strDate = "2012-11-09 07:20:07.410"
Datetime actualDate = Convert.ToDateTime(strDate); -(L2)

L2 : does not return millisecond...

As per BMS121 suggestion, I tried the following :
(my entity object is called EDEntitiy)

Edentity.Timestamp = actualDate.TimeOfDay;

But above statement causes compiler error:
'Cannot implicitly convert System.TimeSpan to System.Datetime...
GeneralRe: How to convert string to Datetime including milliseconds Pin
BobJanova8-Nov-12 23:24
BobJanova8-Nov-12 23:24 
GeneralRe: How to convert string to Datetime including milliseconds Pin
Vijay Kanda11-Nov-12 19:15
Vijay Kanda11-Nov-12 19:15 
GeneralRe: How to convert string to Datetime including milliseconds Pin
BobJanova11-Nov-12 22:10
BobJanova11-Nov-12 22:10 
Questionhow to sort Datalist using Dropdown which is not in the datalist control Pin
sreeCoderMan7-Nov-12 21:19
sreeCoderMan7-Nov-12 21:19 
Questiondatagridview child rows Pin
mynamearan7-Nov-12 20:18
mynamearan7-Nov-12 20:18 
AnswerRe: datagridview child rows Pin
Wayne Gaylard7-Nov-12 21:14
professionalWayne Gaylard7-Nov-12 21:14 
GeneralRe: datagridview child rows Pin
Mycroft Holmes7-Nov-12 22:08
professionalMycroft Holmes7-Nov-12 22:08 
GeneralRe: datagridview child rows Pin
Wayne Gaylard7-Nov-12 22:32
professionalWayne Gaylard7-Nov-12 22:32 
QuestionC# linq to sql default problem Pin
sc steinhayse7-Nov-12 12:57
sc steinhayse7-Nov-12 12:57 
AnswerRe: C# linq to sql default problem Pin
Mycroft Holmes7-Nov-12 13:12
professionalMycroft Holmes7-Nov-12 13:12 
GeneralRe: C# linq to sql default problem Pin
sc steinhayse7-Nov-12 18:14
sc steinhayse7-Nov-12 18:14 
GeneralRe: C# linq to sql default problem Pin
Mycroft Holmes7-Nov-12 18:26
professionalMycroft Holmes7-Nov-12 18:26 
AnswerRe: C# linq to sql default problem Pin
jschell8-Nov-12 8:49
jschell8-Nov-12 8:49 
QuestionReplicate a class from an assempli and add a new constructor Pin
PozzaVecia7-Nov-12 11:45
PozzaVecia7-Nov-12 11:45 
AnswerRe: Replicate a class from an assempli and add a new constructor Pin
Mycroft Holmes7-Nov-12 13:07
professionalMycroft Holmes7-Nov-12 13:07 
AnswerRe: Replicate a class from an assempli and add a new constructor Pin
DaveyM697-Nov-12 18:42
professionalDaveyM697-Nov-12 18:42 
GeneralRe: Replicate a class from an assempli and add a new constructor Pin
PozzaVecia7-Nov-12 22:41
PozzaVecia7-Nov-12 22:41 

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.