HELP -my Date code isnt working

Reply

Join Date: Oct 2004
Posts: 2
Reputation: wacko is an unknown quantity at this point 
Solved Threads: 0
wacko wacko is offline Offline
Newbie Poster

HELP -my Date code isnt working

 
0
  #1
Oct 2nd, 2004
Here is my date code

<%= FormatDateTime(strDate, 1) %>
I just put this in but it is showing Saturday, December 30, 1899 and wont change. What is wrong???


Wacko
www.wackosonline.com
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 45
Reputation: BlackDice is an unknown quantity at this point 
Solved Threads: 0
BlackDice's Avatar
BlackDice BlackDice is offline Offline
Light Poster

Re: HELP -my Date code isnt working

 
0
  #2
Oct 2nd, 2004
Originally Posted by wacko
Here is my date code



I just put this in but it is showing Saturday, December 30, 1899 and wont change. What is wrong???


Wacko
www.wackosonline.com
I can't help you because I have no idea what you're doing
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 2
Reputation: wacko is an unknown quantity at this point 
Solved Threads: 0
wacko wacko is offline Offline
Newbie Poster

Re: HELP -my Date code isnt working

 
0
  #3
Oct 2nd, 2004
Sorry should of been more clear - I was trying to get it to give me the day and date (ie. Saturday October 2, 2004)

Here is another question too - Stupid me when I wrote a membership program I did all the code then was going to link to my site. The problem is I was using css.,(most of my pages or done) so all my pages go to one page when hitting that link. How can I get that one page to automatically go to the other page so I don't have to change all my code. (Hope this makes sense as I tend to babble and not get my point across. :o
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 167
Reputation: Drew is an unknown quantity at this point 
Solved Threads: 7
Drew's Avatar
Drew Drew is offline Offline
Junior Poster

Re: HELP -my Date code isnt working

 
0
  #4
Oct 3rd, 2004
Its showing you a weird date because the strDate variable probably isnt set.

The strDate var needs a date to be set. Above the format date in your asp code add

  1. strDate = Now()

or just use

  1. <%= FormatDateTime(Now(), 1) %>
Drew Gauderman
ASP / MSSQL Coder
http://www.iportalx.net - My ASP Portal
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC