I am sure this will help you out. It a link to download the "Microsoft 
Windows Script 5.6" reference. It has examples and explanations for all 
the functions in VBScript.

http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp

Soren







rickstahr <[EMAIL PROTECTED]>
09/30/2004 03:00 PM
Please respond to active-server-pages
 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        Re: [ASP] Help! Date functions


Thnaks for the replies.

Yes, it's a date/time field (in access, I should add)

I do an order by postdate but it orders only by date, not by time, so 
all posts for a particular date appear in random order.

Can you explain more about between Date() and DateAdd("d", 1, Date
()) ? I haven't a clue.


Thanks again.



--- In [EMAIL PROTECTED], "Chris Hagwood" 
<[EMAIL PROTECTED]> wrote:
> 
> > SQL="Select count (id) from post WHERE postdate =#" & Date() & "#"
> > todaysposts=poststoday(0)
> > response.write There were " & todaysposts & " posts today."
> 
> You will need to do a between Date() and DateAdd("d", 1, Date()) to 
get all
> of today's posts.
> 
> For getting the posts in order, make sure you are doing a OrderBy 
postdate
> statement.




--------------------------------------------------------------------- 
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links



 




[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to