get only last 2 digit of year in javascript
var strDate = new Date(); // By default Date empty constructor give you Date.now
var shortYear = strDate.getFullYear();
// Add this line
var twoDigitYear = shortYear.toString().substr(-2);
Also in JavaScript:
- js set datetime
- bs modal service angular pass data
- javascript string ends with
- javascript change class of item
- set padding jquery
- what is react mounting
- js remove last character
- ctx beginpath react
- express js server
- javascript localstorage
- rest parameter javascript
- javascript code for year in html
- react js installation
- ajax post rest api example
- if undefined angular
- javascript Error: Invalid web service call, missing value for parameter: 'documentId'.
- javascript run something after x seconds
- how to initialize events in fullcalendar through json data in laravel
- json parsing techniques in api
- read json file in typescript
- text editor
- error: Error: Unable to resolve module `react-native-gesture-handler` from `node_modules\@react-navigation\native\lib\module\Scrollables.js`: react-native-gesture-handler could not be found within the project.
- function expression javascript
- how to send multiple array in ajax