showing results for - "get only last 2 digit of year in javascript"
Oskar
11 Nov 2016
1var strDate = new Date(); // By default Date empty constructor give you Date.now
2var shortYear = strDate.getFullYear(); 
3// Add this line
4var twoDigitYear = shortYear.toString().substr(-2);
queries leading to this page
get last two digit float jsget current last 2 digits of year in jqueryjs get last two digits of yearhow to get the last 3 months in javascriptget current year last two digits jsget last 2 digits of year javascripttypescript year to yyjavascript current date year two digitjavascript get year 2 digitsjavascript get year without objectget 2 digit year javascriptget 2 digit year in javascriptjavascript get year 2 digitget the 2 digit year jsshorten year to two number jquerydate javascript get 2 digits yearjavascript reduce go back to the last two digitshow to get year last 2 digit from date in javascriptget the last digit of a number javascriptjavascript date get 2 digit yearjq last 2 digits current yearhow to get last digits of year in date javascriptget the last 2 digit of number in javascriptvar yy 3d 28new date 28 29 getfullyear 28 29 2b 27 27 29 slice 28 2 29 3bget the last two number of year javascriptjavascript get 2 digit yearget last 2 digits current year javascriptget two digit year javascriptdisplay only the last 2 digits of a year javascripthow to get only last two chracter of year in jsget last two digits of year in number javascriptjavascript get last two digits of yearjs get year last two digitshow to add only last two numbers of year in javascriptget last two digits of number from year javascripthow to get last two digits of current year in javascriptget last 2digits javascripthow to get year in yy format in javascriptget year last two digit in typescriptjs get date 2 digit yearjs get 2 digit yeargetfullyear javascript 2 digitsget last two number in year in jscurrent year last two digits in javascriptjavascript date get last two digits of yearjavascript date year 2 digitsjs get last 2 digits of yearget last two digit of year in nodejsget last 4 digits of number javascripthow to make year from last two digitjs year to show only last 2 digisjavascript get year last 2 digitsjavascript get short yearget short year in javascripttake last two digit of a year typescriptjs get short yearjs date get year only 2 lastjs date to local string year last tow digitshow to take only last two digit of year in javascriptget last two digits of year javascriptjs get last two number in yearhow to get last two digits of year in current date jqueryjs date get year 2 digitshow to get last 2 digits of year in javascripthow to pull yy in javascripjs how to set year with last two digitsjs 2 digit get yearhow to get current year last two digits in javascriptjavascript 2 digit yearjavascript year get 2 get the last two digits of the year jsshow only last two digits in reactjavascript get last 2 digits of yearjs how to get only the last 2 diggitsjava script date get last tow digits of yearjavascript 2digits yeargot two nombers from year javascriptget last 2 digits in a year date javascriptget only last 2 digit of year in javascript