| | |
HELP -my Date code isnt working
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2004
Posts: 2
Reputation:
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
•
•
•
•
<%= FormatDateTime(strDate, 1) %>
Wacko
www.wackosonline.com
•
•
•
•
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
•
•
Join Date: Oct 2004
Posts: 2
Reputation:
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
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
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
or just use
The strDate var needs a date to be set. Above the format date in your asp code add
ASP Syntax (Toggle Plain Text)
strDate = Now()
or just use
ASP Syntax (Toggle Plain Text)
<%= FormatDateTime(Now(), 1) %>
![]() |
Similar Threads
- My IF ($email_settings == "0") isnt working! :( (PHP)
- why isnt it working!?! (C++)
- my html code isnt working please help (HTML and CSS)
- my html code isnt working please help (JavaScript / DHTML / AJAX)
- msn messenger 7.0 isnt working (Windows 95 / 98 / Me)
Other Threads in the ASP Forum
- Previous Thread: Displaying error line number
- Next Thread: Do while Loop to display a choosen month and the dates in it
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7





