javascript - Remove Characters in Date/Time document.write script -


i have searched various ways remove 23:59:59 gmt-0400 (edt) javascript function trying run. want display tue apr 30 2013 (for example). here have far...

<script type="text/javascript">     var = new date();     document.write(new date(now.getfullyear(), now.getmonth() + 1, 0, 23, 59, 59)); </script> 

which outputs...

tue apr 30 2013 23:59:59 gmt-0400 (edt)

any great! thanks!

<script type="text/javascript">     var = new date();     document.write(new date(now.getfullyear(), now.getmonth() + 1, 0, 23, 59, 59).todatestring()); </script> 

Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -