954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

HELP -my Date code isnt working

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

wacko
Newbie Poster
2 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 
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

BlackDice
Light Poster
43 posts since Apr 2004
Reputation Points: 19
Solved Threads: 0
 

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

wacko
Newbie Poster
2 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

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

strDate = Now()


or just use

<%= FormatDateTime(Now(), 1) %>
Drew
Junior Poster
166 posts since Apr 2004
Reputation Points: 25
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You