This is a discussion on How do I format the Last-Modified date with javascript? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hi all...... How do I format the Last-Modified date with javascript? Thanks & Regards Pvinoth...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi all...... How do I format the Last-Modified date with javascript? Thanks & Regards Pvinoth |
|
#2
| |||
| |||
| <SCRIPT LANGUAGE="JavaScript"> <!-- myDate = new Date(document.lastModified); displayDate = myDate.getMonth()+1 + "-" + myDate.getDate() document.writeln("Last Modifed: " + displayDate) //--> </SCRIPT> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Date format yymmdd | itbarota | HTML, CSS and Javascript Coding Techniques | 2 | 03-03-2008 09:07 PM |
| Validate a date to be in the format dd/mm/yyyy | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 02-25-2008 09:21 PM |
| write to the document both the Last Modified and a review date, i.e. Last Modified | itbarota | HTML, CSS and Javascript Coding Techniques | 1 | 02-18-2008 08:34 PM |
| How can I show the documents last modified date in the format: month, date, year, tim | Pvinothkumar | HTML, CSS and Javascript Coding Techniques | 3 | 12-28-2007 05:58 AM |
| How to convert a date to a globally accepted date format, in DOT NET 2005? | Archer | C# Programming | 1 | 07-25-2007 03:21 AM |
Our Partners |