TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sivakumar
NA
551
219.5k
how to replace double quotes with single quotes
May 29 2016 5:51 AM
Hi,
This is my string query :
strSQL = "SELECT Employeeworkhourslogid,CONVERT(VARCHAR(10),Date,101) AS 'Date', InTime = LTRIM(SUBSTRING(CONVERT(VARCHAR(20), CONVERT(DATETIME, InTime + ':' + InTimeMins ), 22), 10, 5) + RIGHT(CONVERT(VARCHAR(20), " _
& "CONVERT(DATETIME, InTime + ':' + InTimeMins ), 22), 3)), OutTime = LTRIM(SUBSTRING(CONVERT(VARCHAR(20), CONVERT(DATETIME, OutTime + ':' + OutTimeMins ), 22), 10, 5) + RIGHT(CONVERT(VARCHAR(20)," _
& " CONVERT(DATETIME, OutTime + ':' + OutTimeMins ), 22), 3)),TimeDeduction1 AS 'Duration1',Purpose1,TimeDeduction2 AS 'Duration2', Purpose2,TotalHours,Whereworked,Action,EmployerNotes AS Comments , (EGH.TotalHours * E.HourlyRate) as 'TotalAmount' FROM EmployeeGrossHours EGH inner JOIN tblEmployee E on E.EmployeeID = EGH.EmployeeID WHERE EGH.EmployeeID = " & employeeid & " AND Clientid=" & ClientID & " AND Date between """ & paidStartDate & """ And """ & paidStartDate & """"
I want to replace """ & paidStartDate & """ And """ & paidStartDate & """" double quotes with single quotes.
Please give me solution.
Thanks.
Reply
Answers (
5
)
c# programming exercises with solutions
how can i show datagridview data in PrintPriview