|
pd_it_guy -> RE: Date and Time SQL Quandry (4/4/2008 18:16:40)
|
First thanks so much (once again) for the thoughtful and thorough response. Since the post, I came upon several possibilities, one being, the mktime() function, but I cannot seem to get it to work in the asp environment, iand perhaps it is a totally wrong function, or incorrect usage of it. My plan was as follows: See if I can find some function I can feed days, years, months, hours, minutes to, to get a serial number. From the discussion, it looks like DatePart would do. Make sure if I bump the second by just one it is slightly bigger, thus comparable. Next, see how we would fold this into a query. Looks like we are going to have to dig out the very same thing for every record, and set a variable or series of variables to it. This is where it gets troublesome, as the user input can be controlled and actually preset; making it work in SQL another matter. But I can save that battle for later. And no, I am not up on arrays. Maybe putting in the time on DatePart this weekend makes sense for now. And that time, that ranges from 1 to 240000 is going to be a challenge. Let me read up on and work with DatePart and report back. For something so simple??? it is proving to be quite a challenge.
|
|
|
|