Posts

Get Date & Time From Iso formate in Javascript

var monthNames = [ "January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , "November" , "December" ]; // Get Date From Iso date function getdate ( date ) { var msgdate = new Date ( date ); var day = msgdate . getDate (); if ( day <= 9 ) { day = '0' + day ; } var month = msgdate . getMonth (); var year = msgdate . getFullYear (); return day + ' ' + monthNames [ month ] + ' ' + year ; } //Get Time Fron Iso Date function gettime ( date ) { var msgdate = new Date ( date ); var hh = msgdate . getHours (); var mm = msgdate . getMinutes (); var ss = msgdate . getSeconds (); return timeTo12HrFormat ( hh + ':' + mm + ':' + ss ); } // Get 12 Hours Time Formate From 24 hour function timeTo12Hr

Private Chat Using Node js and socket.io with encrypt and decrypt message and insert into mongo db

node.js and socket.io chat tutorial This is a very simple single-room chat client using node.js, socket.io and the express module. i found that the ready availability of  documentation  and the eagerness of experienced individuals to help the newly adopting, throughout the  node.js  communities, allow for quicker learning and sharing of acquired skills UPDATE:  long overdue, but you can now skip the following step and just install via the .msi or .pkg files and they include NPM –  http://nodejs.org/#download to begin, you must install node.js and npm along with their dependencies in Linux System now, install the modules curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - sudo apt-get install -y nodejs For Update  sudo apt-get purge node-express now, install the modules npm install -d let’s now create the server file, server .js var express = require( 'express' ); var app = express(); var server = require( 'http' ).cr