AYUSH MISHRA has Published 134 Articles

How to Subtract One Month using MomentJS?

AYUSH MISHRA

AYUSH MISHRA

Updated on 23-Dec-2024 11:04:35

5K+ Views

Sometimes while working with with dates in JavaScript, it is common to need specific dates for calculations or validations. In this problem, we are given a date in the form of year-month-date and we have to subtract one month from it. In this article, we are going to learn how ... Read More

How to set 00:00:00 using MomentJS?

AYUSH MISHRA

AYUSH MISHRA

Updated on 23-Dec-2024 11:03:36

9K+ Views

Sometimes while working with dates and times, we need to manipulate or normalize them to a specific time. One such common need is to reset a date's time to the start of the day, i.e. 00:00:00 midnight. In this article, we are going to learn different approaches to set the ... Read More

How to Get Last Day of Previous Month from Date in Moment.JS?

AYUSH MISHRA

AYUSH MISHRA

Updated on 20-Dec-2024 10:11:27

5K+ Views

Sometimes while working with with dates in JavaScript, it is common to need specific dates for calculations or validations. One such situation is when we are given a date and we have to determine the last day of the previous month. In this article, we are going to learn how ... Read More

Python program to convert milliseconds to seconds

AYUSH MISHRA

AYUSH MISHRA

Updated on 17-Dec-2024 11:25:20

13K+ Views

What is Milliseconds? The Milliseconds is a smaller unit of time used for problems where precise time calculations are desired. We can easily convert seconds to milliseconds using Python. In this article, we will learn how to do so in Python. This is useful in many applications, such as video ... Read More

C# Program to Check if a Number is Perfect

AYUSH MISHRA

AYUSH MISHRA

Updated on 16-Dec-2024 12:49:42

12K+ Views

What is a Perfect Number?A perfect Number is a positive integer that is equal to the sum of its proper divisors(excluding itself). For example, 6 is a perfect number because its divisors (1, 2, and 3) sum up to 6. Proper divisors are those numbers that leave no remainder when ... Read More

C# Program to Check If a Number is a Happy Number

AYUSH MISHRA

AYUSH MISHRA

Updated on 13-Dec-2024 21:46:55

8K+ Views

Problem DescriptionWe are given a number as input, we have to check whether the number is a happy number or not. In this article, we are going to learn how we can check if a number is a happy number or not in C#. What is a happy number?A happy ... Read More

C# Program to Remove Duplicates from an Array

AYUSH MISHRA

AYUSH MISHRA

Updated on 12-Dec-2024 12:46:59

6K+ Views

In this article, we are going to check how we can remove duplicate elements from an array in C# using different approaches. What are Duplicate Elements in an Array? The elements which exist more than once in a given array are duplicate elements. In this problem, we are given ... Read More

C# program to check if a matrix is symmetric

AYUSH MISHRA

AYUSH MISHRA

Updated on 12-Dec-2024 12:29:56

6K+ Views

In this article, we are going to discuss how we can check if a matrix is symmetric or not using C#. What is a Symmetric Matrix? A symmetric matrix is a square matrix (matrix which has the same number of rows and columns) in which the element at position ... Read More

Python program to convert seconds to milliseconds

AYUSH MISHRA

AYUSH MISHRA

Updated on 12-Dec-2024 11:47:27

6K+ Views

Milliseconds is a smaller unit of time used for problems where precise time calculations are desired. We can easily convert seconds to milliseconds using Python. This is useful in many applications, such as video editing, data analysis, and real-time processing. Problem Description We are given time input in seconds and ... Read More

How to Filter Key of an Object using Lodash?

AYUSH MISHRA

AYUSH MISHRA

Updated on 12-Dec-2024 09:15:04

7K+ Views

In JavaScript, sometimes we need some specific key-value pairs from an object. Suppose we have a large object and only want to select some specific keys. In this article, we will learn how to filter the keys of an object using Lodash. What is Lodash? Lodash is a popular ... Read More

Advertisements