Get year in two digits?

  • Nasimov
  • Born
  • Born
  • Nasimov
  • Posts: 2
  • Loc: EarthPlanet

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Try
Code: [ Select ]
var year = mydate.getFullYear().toString().slice(2);
  • iBold
  • Graduate
  • Graduate
  • iBold
  • Posts: 123

Post 3+ Months Ago

Y2K here we come! :D
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

iBold wrote:
Y2K here we come! :D


Someone's stuck in the past :roll:
  • iBold
  • Graduate
  • Graduate
  • iBold
  • Posts: 123

Post 3+ Months Ago

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
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

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
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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.
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Generators kick arse. Definitely come in handy :)

Post Information

  • Total Posts in this topic: 8 posts
  • Users browsing this forum: No registered users and 31 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.