Click here to Skip to main content
15,921,351 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Passing ByVal or ByRef Pin
Luc Pattyn12-Oct-09 3:53
sitebuilderLuc Pattyn12-Oct-09 3:53 
AnswerRe: Passing ByVal or ByRef Pin
Andy_L_J12-Oct-09 19:02
Andy_L_J12-Oct-09 19:02 
QuestionHelp for Filtering Database by Date !! Pin
jeshra27911-Oct-09 5:14
jeshra27911-Oct-09 5:14 
AnswerRe: Help for Filtering Database by Date !! Pin
dan!sh 11-Oct-09 6:04
professional dan!sh 11-Oct-09 6:04 
GeneralRe: Help for Filtering Database by Date !! Pin
jeshra27911-Oct-09 7:01
jeshra27911-Oct-09 7:01 
GeneralRe: Help for Filtering Database by Date !! Pin
Richard MacCutchan11-Oct-09 8:11
mveRichard MacCutchan11-Oct-09 8:11 
GeneralRe: Help for Filtering Database by Date !! Pin
jeshra27911-Oct-09 18:10
jeshra27911-Oct-09 18:10 
GeneralRe: Help for Filtering Database by Date !! Pin
dan!sh 11-Oct-09 18:37
professional dan!sh 11-Oct-09 18:37 
You really should not do it this way. If you have a DateTime datatype, use it. Don't you think so?

jeshra279 wrote:
Please provide me a line of code for this?


It cannot be done in a line of code with current approach.

Still if you want to stick to this way, then since the values in your database are as strings, then break up the date, month and year part into seprate integers. Then start with checking that if the year is less than selected dates year. If the year is same, check for month and if month is same check for date. Then you can filter out the records.

Don't you think this is bit insane way of comparing dates?

PS: There can be a decent way than what I have told. But anyways, IMHO if you use strings to store dates, you are wrong no matter how you comapre them.

It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

AnswerRe: Help for Filtering Database by Date !! Pin
Luc Pattyn12-Oct-09 0:31
sitebuilderLuc Pattyn12-Oct-09 0:31 
Questionwriting a timestamp to a xml file. Pin
malcomhfc11-Oct-09 4:15
malcomhfc11-Oct-09 4:15 
AnswerRe: writing a timestamp to a xml file. Pin
dan!sh 11-Oct-09 6:07
professional dan!sh 11-Oct-09 6:07 
GeneralRe: writing a timestamp to a xml file. Pin
malcomhfc11-Oct-09 7:58
malcomhfc11-Oct-09 7:58 
GeneralRe: writing a timestamp to a xml file. Pin
dan!sh 11-Oct-09 15:32
professional dan!sh 11-Oct-09 15:32 
GeneralRe: writing a timestamp to a xml file. Pin
freakyit11-Oct-09 23:57
freakyit11-Oct-09 23:57 
GeneralRe: writing a timestamp to a xml file. Pin
malcomhfc12-Oct-09 10:44
malcomhfc12-Oct-09 10:44 
QuestionExport Data to Excel Pin
Puffsss10-Oct-09 23:22
Puffsss10-Oct-09 23:22 
AnswerRe: Export Data to Excel Pin
Andy_L_J10-Oct-09 23:28
Andy_L_J10-Oct-09 23:28 
AnswerRe: Export Data to Excel Pin
The Man from U.N.C.L.E.12-Oct-09 4:18
The Man from U.N.C.L.E.12-Oct-09 4:18 
QuestionNumerical accuracy in calculation Pin
A.Najafi10-Oct-09 21:55
A.Najafi10-Oct-09 21:55 
AnswerRe: Numerical accuracy in calculation Pin
Andy_L_J10-Oct-09 23:11
Andy_L_J10-Oct-09 23:11 
GeneralRe: Numerical accuracy in calculation Pin
A.Najafi11-Oct-09 0:13
A.Najafi11-Oct-09 0:13 
GeneralRe: Numerical accuracy in calculation Pin
Andy_L_J11-Oct-09 0:34
Andy_L_J11-Oct-09 0:34 
GeneralRe: Numerical accuracy in calculation Pin
A.Najafi11-Oct-09 1:42
A.Najafi11-Oct-09 1:42 
GeneralRe: Numerical accuracy in calculation Pin
Dave Kreskowiak11-Oct-09 6:57
mveDave Kreskowiak11-Oct-09 6:57 
GeneralRe: Numerical accuracy in calculation Pin
Luc Pattyn11-Oct-09 8:13
sitebuilderLuc Pattyn11-Oct-09 8:13 

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.