Welcome to my blog !

Best Ways to convert timestamp to Date format in typescript| Angular timestamp date example

December 31, 2022 ·  3 min read

The timestamp is a Unix timestamp in milliseconds format used to hold a date and time. It holds the number of milliseconds from 1970-01-01. It is a 10-digit number. a timestamp is a long number in seconds from 1970 JANUARY 1 UTC format. For example, the Timestamp is 1587143959831. This blog post explains how to convert a timestamp to a date format in multiple ways. The Date object in javascript holds the Date and time format....

Best ways to add an element to an array in React state with examples

December 31, 2022 ·  4 min read

This is a short tutorial on how to add an object to an array of objects in React. And also how to update the array of objects into react state component. This tutorial explains how to push an element to an array of elements in React with code examples. In this section, we will learn how to add an object to an array of objects in React. ReactJS is a JavaScript UI library for building user interfaces....

Best used forEach Examples in java8 with the explanation

December 31, 2022 ·  4 min read

java8 forEach examples Java8 introduced forEach for iteration of elements - collections, Arrays, and Map. It allows the developer to iterate collections using an internal iterator. It uses with Lambda Expressions and Method reference. Java 7 for each loop example To iterate the list of strings, We have used for each enhanced iteration in java7. import java.util.ArrayList; import java.util.List; public class StringArrayLoopExample { public static void main(String[] args) throws Exception{ List<String> list = new ArrayList<>(); list....

Best Practices for adding .gitignore file to Android projects

December 31, 2022 ·  2 min read

These tutorials talk about which files in the android project are committed and which files are not ignored in a git repository. Android application gitignore file gitignore is a text file that contains a list of files or patterns that are excluded while committing an android project. Following is a list of files and patterns for gitignore files java files are compiled into class files so class files are not required to commit to the repository...

Best LocalDate examples with a tutorial in Java8

December 31, 2022 ·  6 min read

Learn the java.util.LocalDate class with the top 10 examples. Contents What is java.time.LocalDate class in java8 java8 LocalDate Example How to get Today, Yesterday, and Tomorrow’s date? How to create a LocalDate Object in java? How to get a Year, Month, and Day of Week, Month, Year from the current date? How to convert java.sql.timestamp to LocalDate in java8? How to Convert Localdate to Instant Object?...

You'll get a notification every time a post gets published here.