Get year in two digits?

  • Nasimov
  • Born
  • Born
  • No Avatar
  • Joined: Nov 03, 2003
  • Posts: 2
  • Loc: EarthPlanet
  • Status: Offline

Post November 12th, 2003, 9:07 am

How to get year in two digits ? Example for 2003 to get 03 ?
I use:

var year=mydate.getYear()

but this returns four digits year ?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 12th, 2003, 9:07 am

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post November 12th, 2003, 11:10 am

Try
Code: [ Select ]
var year = mydate.getFullYear().toString().slice(2);
  • iBold
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Oct 27, 2003
  • Posts: 123
  • Status: Offline

Post November 13th, 2003, 6:48 pm

Y2K here we come! :D
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post November 13th, 2003, 8:33 pm

iBold wrote:
Y2K here we come! :D


Someone's stuck in the past :roll:
  • iBold
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Oct 27, 2003
  • Posts: 123
  • Status: Offline

Post November 14th, 2003, 1:49 am

haha yea, remember those days? who here had a relative or a friend who stocked up and hid away for those last few days of '99??
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post November 14th, 2003, 8:02 am

Yeah, people are sooo lame :P

I actually didn't know anyone who stocked up for y2k, everyone I knew thought it was lame how people were reacting about it.

lame :roll: had to get that last one in
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post November 14th, 2003, 10:32 am

we bought a genrator because they went on sale, and we've actually used it three or four times since then, once was when the whole northeast lost power.
Pixel Acres V2
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Joined: Jun 26, 2003
  • Posts: 1402
  • Loc: Philadelphia, PA
  • Status: Offline

Post November 14th, 2003, 10:14 pm

Generators kick arse. Definitely come in handy :)

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 175 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.