Click here to Skip to main content
15,915,508 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: To Web Pages or not to Web Pages? Pin
Dylan Morley26-Sep-12 5:04
Dylan Morley26-Sep-12 5:04 
GeneralRe: To Web Pages or not to Web Pages? Pin
n.podbielski28-Sep-12 0:27
n.podbielski28-Sep-12 0:27 
Questiondateformat Pin
suriyakaqnnan25-Sep-12 19:09
suriyakaqnnan25-Sep-12 19:09 
AnswerRe: dateformat Pin
Sandeep Mewara25-Sep-12 20:25
mveSandeep Mewara25-Sep-12 20:25 
GeneralRe: dateformat Pin
suriyakaqnnan25-Sep-12 20:46
suriyakaqnnan25-Sep-12 20:46 
GeneralRe: dateformat Pin
Sandeep Mewara25-Sep-12 20:52
mveSandeep Mewara25-Sep-12 20:52 
GeneralRe: dateformat Pin
Albarhami26-Sep-12 20:39
Albarhami26-Sep-12 20:39 
GeneralRe: dateformat Pin
KiranKumar Roy14-Oct-12 3:07
KiranKumar Roy14-Oct-12 3:07 
use below SQL function to convert DD/MM/YYYY string to Datetime..

Make sure every time u pass "DD/MM/YYYY" format only.

SQL
CREATE FUNCTION ChangeDateFormat
(
	@STRING NVARCHAR(40),
	@DELIMITER NVARCHAR(40)
)
RETURNS DateTime
AS
BEGIN
	DECLARE @MM as varchar(5)
	DECLARE @DD as varchar(5)
	DECLARE @YY as varchar(5)
	DECLARE @POS INT
	DECLARE @NEXTPOS INT
	DECLARE @INT INT
	DECLARE @TEMP as varchar(50) 
	SET @STRING = @STRING + @DELIMITER
	SET @POS = charindex(@Delimiter,@String)
	SET @INT = 1
	
	WHILE (@POS <> 0)
	BEGIN
		if @INT = 1 
			Begin
				SET @DD = substring(@String,1,@Pos - 1)
			End
		if @INT = 2 
			Begin
				SET  @MM = substring(@String,1,@Pos - 1)	
			End
		if @INT = 3 
			Begin
				SET @YY = substring(@String,1,@Pos - 1)	
			End	
		
		SET @STRING = substring(@String,@pos+1,len(@String))
		SET @POS = charindex(@Delimiter,@String)
		SET @INT = @int + 1
	END 
	SET @TEMP = @MM+'/'+ @DD + '/' + @YY
	
	Return  convert(datetime, @TEMP)
END

KiranKumar Roy

AnswerRe: dateformat Pin
Albarhami25-Sep-12 23:18
Albarhami25-Sep-12 23:18 
Questionlogin Pin
suriyakaqnnan25-Sep-12 19:06
suriyakaqnnan25-Sep-12 19:06 
AnswerRe: login Pin
Sandeep Mewara25-Sep-12 20:29
mveSandeep Mewara25-Sep-12 20:29 
AnswerRe: login Pin
gopal pradhan8-Nov-12 23:21
gopal pradhan8-Nov-12 23:21 
QuestionPulling data from interface Pin
oPhoenixo25-Sep-12 4:54
oPhoenixo25-Sep-12 4:54 
AnswerRe: Pulling data from interface Pin
David Mujica25-Sep-12 5:56
David Mujica25-Sep-12 5:56 
GeneralRe: Pulling data from interface Pin
oPhoenixo25-Sep-12 6:30
oPhoenixo25-Sep-12 6:30 
AnswerRe: Pulling data from interface Pin
jkirkerx25-Sep-12 10:54
professionaljkirkerx25-Sep-12 10:54 
QuestionManaging Long Running Processes Pin
Adwaitam25-Sep-12 2:26
Adwaitam25-Sep-12 2:26 
AnswerRe: Managing Long Running Processes Pin
Richard MacCutchan25-Sep-12 6:09
mveRichard MacCutchan25-Sep-12 6:09 
AnswerRe: Managing Long Running Processes Pin
jkirkerx25-Sep-12 11:21
professionaljkirkerx25-Sep-12 11:21 
QuestionLoadWith is not allowed after freeze or attach to DataContext Pin
nitin_ion24-Sep-12 21:27
nitin_ion24-Sep-12 21:27 
AnswerRe: LoadWith is not allowed after freeze or attach to DataContext Pin
n.podbielski28-Sep-12 0:38
n.podbielski28-Sep-12 0:38 
Questioncheck box Pin
bilal khatri24-Sep-12 4:09
bilal khatri24-Sep-12 4:09 
AnswerRe: check box Pin
Mohibur Rashid24-Sep-12 16:11
professionalMohibur Rashid24-Sep-12 16:11 
AnswerRe: check box Pin
wikizhao25-Sep-12 0:00
wikizhao25-Sep-12 0:00 
AnswerRe: check box Pin
gopal pradhan8-Nov-12 23:23
gopal pradhan8-Nov-12 23:23 

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.