Skip to content

Category Archives: Node.js

File Upload in NodeJS means to move files from the client location to the server location. A Progress bar is a visual component that changes… Read More
Mongoose is a MongoDB object modeling and handling for node.js environment. Mongoose Documents represent a one-to-one mapping to documents stored in the database in MongoDB.… Read More
Moment.js is a date library for JavaScript that parses, validates, manipulates, and formats dates. In this article, we are going to see how we can use… Read More
The moment().duration().toJSON() method is used to get the JSON format of the duration. During the serialization process, the ISO8601 format would be used for converting… Read More
Moment.js is a date library for JavaScript that parses, validates, manipulates, and formats dates. We can use the creationData() method to get information about the… Read More
Moment.js is a date library for JavaScript that parses, validates, manipulates, and formats dates. We can use the moment() function passed with a string to… Read More
The moment().duration().clone() Method is used to clone the given Duration object. As the Duration object is mutable, it can be used to save a copy… Read More
The moment().isDuration() method is used to check if the given parameter is a Duration object. It returns a Boolean value. It will also return false… Read More
The moment().toString() Method is used to return a human-readable string of the Moment object in English. It is similar to the native Date object’s toString()… Read More
The moment().weekYear() Method is used to get or set the current week-year of the Moment. This method is Locale-aware meaning that the first day of… Read More
Moment.js is a date library for JavaScript that parses, validates, manipulates, and formats dates. We can use the moment() function passed to get the current date… Read More
The moment().duration().as() Method returns the specified unit of time from the duration object. It is basically an alternative to other functions like asWeeks(), asMonths(), etc.… Read More
The moment().duration().get() Method is used to return the specified time value from a duration object. It is basically an alternative to other getter functions like… Read More
The moment().duration().milliseconds() method is used to get the number of milliseconds of the duration. This number of milliseconds is calculated as a subset of the… Read More
The moment().duration().hours() method is used to get the hours of the duration. This number of hours is calculated as a subset of a day, therefore… Read More

Start Your Coding Journey Now!