HighDots Forums  

Work out Yesterdays date

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


Discuss Work out Yesterdays date in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark
 
Posts: n/a

Default Work out Yesterdays date - 02-20-2005 , 02:39 PM






Hi,

Does anyone know where i can get some javscript code to work out yesterdays
date

Thanks
Mark



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

Default Re: Work out Yesterdays date - 02-28-2005 , 09:33 AM






Quote:
Does anyone know where i can get some javscript code to work out
yesterdays date
See Section 15.9 of the ECMA Javascript specification, 'Data Objects' :-

http://www.ecma-international.org/pu...T/Ecma-262.pdf

You should hopefully be able to work out a one out few liner from there.

Hope this helps,

Aaron

P.S. Do look out for NaN/undefines on bad date values.




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.