hy guys.. i have a problem how to search data by month in format dd/MM/yyyy and i use tipe data varchar(10) exm: 23/01/2014
ade.julianto 0 Newbie Poster
Recommended Answers
Jump to PostClick Here try this. if your date is varchar you will need to convert it Click …
Jump to PostDo you have a column with date strings always of the form xx/xx/xxxx in the front end?
In that case, extract the month using the SubString method of the String class and test with that in your search.
Jump to Post
select * from YOURTABLE where YOURDATECOLUMN like '%/07/____'
I'd suggest including the year too though...
All 10 Replies
Fenrir() 52 Newbie Poster
ade.julianto 0 Newbie Poster
george4986 0 Newbie Poster
ade.julianto 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
george4986 0 Newbie Poster
Fenrir() 52 Newbie Poster
Lucaci Andrew 140 Za s|n
Lucaci Andrew 140 Za s|n
Ketsuekiame 860 Master Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.