date function in asp message board

Results 1 to 2 of 2

Thread: date function in asp message board

  1. #1
    mark Guest

    Default date function in asp message board

    i&#039m trying to tack on a date to each entry to my message board...just like the ones on this site. where do i declare the declare the variable that i pass the date function into? i&#039ve tried it on the form page and on the submitted asp page that writes the entries to a text file (created with the OpenTextFile object). here&#039s what i have so far...<BR><BR>&#060;%=Request.Form("mail")%&#062;< BR><BR>&#060;%=Request.Form("message")%&#062;<BR>< BR>&#060;%<BR>Dim filesys, txtfile<BR>Set filesys = CreateObject("Scripting.FileSystemObject")<BR>Set txtfile = filesys.OpenTextFile("D:inetpubwwwrootwebpagepsxmb .txt",8, true)<BR><BR>&#039 this is where i want to put the date<BR><BR>txtfile.WriteLine Request.Form("mail")<BR>txtfile.WriteLine Request.Form("message")<BR>txtfile.Close<BR>%&#062 ;<BR><BR>thanks

  2. #2
    Tobey Unruh Guest

    Default RE: date function in asp message board

    just put something like:<BR><BR>DateSub = Now()<BR><BR>Then put that DateSub variable with the entry and you should be all set.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts