Click here to Skip to main content
15,887,214 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionchange datetime format Pin
venkat86_ece21-May-08 1:08
venkat86_ece21-May-08 1:08 
AnswerRe: change datetime format Pin
Christian Graus21-May-08 1:09
protectorChristian Graus21-May-08 1:09 
GeneralRe: change datetime format Pin
venkat86_ece21-May-08 1:19
venkat86_ece21-May-08 1:19 
GeneralRe: change datetime format Pin
Christian Graus21-May-08 1:22
protectorChristian Graus21-May-08 1:22 
GeneralRe: change datetime format Pin
venkat86_ece21-May-08 1:41
venkat86_ece21-May-08 1:41 
GeneralRe: change datetime format Pin
Christian Graus21-May-08 1:43
protectorChristian Graus21-May-08 1:43 
AnswerRe: change datetime format Pin
gnjunge21-May-08 21:07
gnjunge21-May-08 21:07 
AnswerRe: change datetime format Pin
gnjunge21-May-08 21:15
gnjunge21-May-08 21:15 
Sorry for that previous post,was only a partial answer. Here is the complete answer

//Get input, parse it correctly.
string input  = "31/12/2005";
DateTime dt = DateTime.ParseExact(input, "dd/MM/yyyy", System.Globalization.CultureInfo.GetCultureInfo("en-US").DateTimeFormat);

//Show output in our format:
string output = dt.ToString("MMddyyyy"); // will give us 12312005


regards,
Gidon
QuestionProblem in Postback Pin
aaraaayen21-May-08 1:02
aaraaayen21-May-08 1:02 
AnswerRe: Problem in Postback Pin
Christian Graus21-May-08 1:05
protectorChristian Graus21-May-08 1:05 
Question/ in sql statement Pin
eyeseetee21-May-08 0:41
eyeseetee21-May-08 0:41 
AnswerRe: / in sql statement Pin
Christian Graus21-May-08 1:07
protectorChristian Graus21-May-08 1:07 
GeneralRe: / in sql statement Pin
eyeseetee21-May-08 1:22
eyeseetee21-May-08 1:22 
GeneralRe: / in sql statement Pin
Christian Graus21-May-08 1:26
protectorChristian Graus21-May-08 1:26 
GeneralRe: / in sql statement Pin
eyeseetee21-May-08 2:20
eyeseetee21-May-08 2:20 
GeneralRe: / in sql statement Pin
Guffa21-May-08 7:07
Guffa21-May-08 7:07 
Questionif img1.src="", set random image through Response.BinaryWrite() Pin
Vsree21-May-08 0:34
Vsree21-May-08 0:34 
AnswerRe: if img1.src="", set random image through Response.BinaryWrite() Pin
Christian Graus21-May-08 1:08
protectorChristian Graus21-May-08 1:08 
Questionpass value from HTML to .aspx page Pin
sjs4u20-May-08 23:25
sjs4u20-May-08 23:25 
AnswerRe: pass value from HTML to .aspx page Pin
Christian Graus20-May-08 23:28
protectorChristian Graus20-May-08 23:28 
AnswerRe: pass value from HTML to .aspx page Pin
Spunky Coder20-May-08 23:38
Spunky Coder20-May-08 23:38 
GeneralRe: pass value from HTML to .aspx page Pin
Christian Graus20-May-08 23:50
protectorChristian Graus20-May-08 23:50 
GeneralRe: pass value from HTML to .aspx page Pin
Spunky Coder20-May-08 23:59
Spunky Coder20-May-08 23:59 
GeneralRe: pass value from HTML to .aspx page Pin
Vasudevan Deepak Kumar21-May-08 0:44
Vasudevan Deepak Kumar21-May-08 0:44 
Questionproblem with asp:ValidationSummary-control Pin
livez20-May-08 23:20
livez20-May-08 23:20 

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.