TekOnline

Tag: Google Sheets

  • Converting Dates to Unix Timestamps: A Simple yet Powerful Technique

    As developers, we often work with dates and timestamps in our applications. One common requirement is to convert a date into a Unix timestamp, which is the number of seconds that have elapsed since January 1, 1970, at 00:00:00 UTC. In this article, we’ll explore a simple yet effective way to achieve this conversion using…

  • Angular JSON to CSV pipe

    Angular JSON to CSV pipe

    👋 Hey there! Are you working on an Angular app that needs to convert JSON data to CSV format? Look no further than the jsontocsv pipe! Here is the code: 🧐 Let’s take a closer look at how this pipe works. First, it defines a private function called flatten that takes an object and returns…

  • Handy angular CSV to JSON pipe

    Handy angular CSV to JSON pipe

    Today, we’re going to talk about a code snippet that can turn CSV data into JSON format using Angular. 🤖💻 First things first, let’s take a look at the code: This is a TypeScript class that defines an Angular pipe called CsvtojsonPipe. A pipe is a way to transform data in Angular. The transform method…