HighDots Forums  

The method of lastModified

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss The method of lastModified in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dungping5@yahoo.com
 
Posts: n/a

Default The method of lastModified - 02-28-2005 , 04:42 PM






Hello,

With the lastModified method, we can have both the date and time, such
as:
This page was last modified: 02/28/2005 09:25:10

Is there a way to keep the date but hide the time, so the above would
become:
This page was last modified: 02/28/2005

Thanks for teaching.


Reply With Quote
  #2  
Old   
Aaron Gray
 
Posts: n/a

Default Re: The method of lastModified - 03-02-2005 , 12:28 AM






Quote:
With the lastModified method, we can have both the date and time, such
as:
This page was last modified: 02/28/2005 09:25:10

Is there a way to keep the date but hide the time, so the above would
become:
This page was last modified: 02/28/2005
var date = ...lastModified()...
var date2 = date.substr( 0, date.indexOf( " "));

Hope this helps,

Aaron




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.