Skip to content
lazydeveloper
  • Home
  • AEM
  • JAVASCRIPT
  • AWS

JAVASCRIPT

  • Home
  • JAVASCRIPT

NodeJs – How to get the current time for a specific timezone

Posted by By Lazy Developer May 30, 2021Posted inJAVASCRIPTNo Comments
PROBLEM: How to get the current time for a specific timezone? SOLUTION: The following code will give you access to the current time in 'America/Los_Angeles'. You can get the date/time…
Read More

NodeJs – Create Express App

Posted by By Lazy Developer January 19, 2021Posted inJAVASCRIPT2 Comments
Step 1: Install express-generator npm install express-generator -g Step 2: Create the express app express my-express-app Step 3: Install the libraries cd my-express-app npm install Step 4: Run the app…
Read More

How to read and write cookies using Javascript code

Posted by By Lazy Developer January 17, 2021Posted inJAVASCRIPTNo Comments
Javascript code to read cookie by name: function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i <ca.length;…
Read More
Copyright 2026 — lazydeveloper. All rights reserved. Sinatra WordPress Theme
Scroll to Top