Ask a Question related to ASP Database, Design and Development.
-
Wayne & Carr #1
Show" Last view... Day - Month - Date - Year on page.
Hello All;
I have just added in a JavaScript function that show that
Day - Month - Day - Year
On my page. This is going for a look of
Last reviewed Saturday, August,9, 2003
This code is done in JavaScript....
Is there a way to do it in "ASP" Instead of JavaScript?????
This is the code. For the function.
Any comments are gladly welcomed...
-------------------------
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var myDays=
["Sunday","Monday","Tuesday","Wednesday","Thursday" ,"Friday","Saturday","Sun
day"]
var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
today=new Date()
thisDay=today.getDay()
thisDay=myDays[thisDay]
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write(""+ thisDay +", " + lmonth + ",");
document.write(""+ date + ", " + year + "");
// End -->
</SCRIPT>
--------------------------
Thank you All....
Wayne
Wayne & Carr Guest
-
group by month/year
I have a table that has a column titled ArticleDate. I would like to group an output based only on the month and year. For instance, a link for... -
SQL: can a date ONLY contain month/year info?
When using a SQL datetime field, is there a way to store ONLY the month and year? I have a situation where I need to store both month/year and... -
1210: Date could not be converted to month/day/year format
Hi, I got this error when downloading a table by "unload" order : 1210: Date could not be converted to month/day/year format It seems that a... -
Get Year, Month and the Day
It works fine but i read the date from a database and i need the year, month and day of this date not the system date. If you know how to seperate... -
Sort - Month then day without year
How's about "Sort" Month / Day without year in birthday date field? Daniel R. Sloan -
Alan #2
Re: Show" Last view... Day - Month - Date - Year on page.
Hi there,
Look up DatePart(), MonthName(), WeekdayName(), etc.
Regards,
Alan
"Wayne & Carr" <spam@spam.net> wrote in message
news:e7FjMhuXDHA.736@TK2MSFTNGP09.phx.gbl...["Sunday","Monday","Tuesday","Wednesday","Thursday" ,"Friday","Saturday","Sun> Hello All;
>
> I have just added in a JavaScript function that show that
> Day - Month - Day - Year
> On my page. This is going for a look of
>
>
> Last reviewed Saturday, August,9, 2003
>
> This code is done in JavaScript....
> Is there a way to do it in "ASP" Instead of JavaScript?????
>
> This is the code. For the function.
> Any comments are gladly welcomed...
> -------------------------
> <SCRIPT LANGUAGE="JavaScript1.2">
>
> <!-- Begin
> var myDays=
>> day"]
>
> var months=new Array(13);
> months[1]="January";
> months[2]="February";
> months[3]="March";
> months[4]="April";
> months[5]="May";
> months[6]="June";
> months[7]="July";
> months[8]="August";
> months[9]="September";
> months[10]="October";
> months[11]="November";
> months[12]="December";
> today=new Date()
> thisDay=today.getDay()
> thisDay=myDays[thisDay]
> var time=new Date();
> var lmonth=months[time.getMonth() + 1];
> var date=time.getDate();
> var year=time.getYear();
> if (year < 2000)
> year = year + 1900;
> document.write(""+ thisDay +", " + lmonth + ",");
> document.write(""+ date + ", " + year + "");
> // End -->
> </SCRIPT>
> --------------------------
>
> Thank you All....
>
> Wayne
>
>
Alan Guest
-
Wayne & Carr #3
Re: Show" Last view... Day - Month - Date - Year on page.
Hello "Alan";
Thank you for the information, I found some really great source sites and
information on use.
Or the Functions.
But while looking at one of the sites. I realized that what I am after is
not a time stamp to put on a page.
But better yet a "review Data stamp"
Kind of like this.
You go to a site and you click on a link that states: be the first to
review this information.
And then after you write up your information on the site, it then gives a
"Review Date Stamp"
So that other that visit that page, will see that it was last reviewed on:
Day/Month/Date/Year
So I think that I am going to work on making a Review page up, so that
people can
Submit there reviews on the site.... That sounds like a good plain..
Take Care Alan;
Wayne
Wayne & Carr Guest



Reply With Quote

