944,107 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 3348
  • ASP RSS
Oct 2nd, 2004
0

HELP -my Date code isnt working

Expand Post »
Here is my date code

Quote ...
<%= 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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wacko is offline Offline
2 posts
since Oct 2004
Oct 2nd, 2004
0

Re: HELP -my Date code isnt working

Quote 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
Reputation Points: 19
Solved Threads: 0
Light Poster
BlackDice is offline Offline
43 posts
since Apr 2004
Oct 2nd, 2004
0

Re: HELP -my Date code isnt working

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
wacko is offline Offline
2 posts
since Oct 2004
Oct 3rd, 2004
0

Re: HELP -my Date code isnt working

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

ASP Syntax (Toggle Plain Text)
  1. strDate = Now()

or just use

ASP Syntax (Toggle Plain Text)
  1. <%= FormatDateTime(Now(), 1) %>
Reputation Points: 25
Solved Threads: 7
Junior Poster
Drew is offline Offline
166 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Displaying error line number
Next Thread in ASP Forum Timeline: Do while Loop to display a choosen month and the dates in it





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC