Tag: .NET

What’s New in Blazor with .NET 9?

Overview .NET 9, the successor to .NET 8, brings some fantastic enhancements and features. It’s like getting a shiny new toolbox for software development adventures. Focus on Cloud-Native Apps and Performance .NET 9 has its sights set on cloud-native applications and performance improvements. Whether you’re building web services, microservices, or other cloud-based solutions, .NET 9 […]

What’s New in Blazor with .NET8

What’s New in Blazor with .NET8 Blazor is a modern web UI framework that allows developers to build interactive web applications using C# and HTML. Blazor can run on the server, on the client using WebAssembly, or both. Blazor also supports a variety of hosting models, such as static web apps, progressive web apps, hybrid […]

ASP.NET Core MVC(.NET6) CRUD Operations using EntityFrameworkCore

MVC stands for Model-View-Controller, it’s a software architectural pattern that separates an application into three main components: Model, View and Controller. The Model represents the data and business logic of the application, the View is responsible for rendering the data into a user interface and the Controller handles user interactions and updates the Model accordingly. […]

API & REST API

What is an API? Api is short for Application Programming Interface. It is used in computer programs to communicate with other applications and/or services.It acts as a bridge between different softwares and devices.Each time we use an app like Facebook or Instagram, send an instant message or check the weather on our phone, we use […]

SQL SERVER

Introduction to SQL Server Introduction to SQL Server SQL Server is an application software for Relational Database Management System (RDBMS), from Microsoft back in 1988, We can used it for creating, maintaining, managing, and implementing relational databases. It is actually a backend application that allows us to store and process data. It is called the […]

Convert Date Formats :

  //For ex., Convert MM/dd/YYYY to dd/MM/yyyy string date = “03/27/2008”; //format is MM/dd/yyyy DateTimeFormatInfo dateTimeFormatterProvider = DateTimeFormatInfo.CurrentInfo.Clone() as DateTimeFormatInfo; dateTimeFormatterProvider.ShortDatePattern = “MM/dd/yyyy”; //source date format DateTime dateTime = DateTime.Parse(date, dateTimeFormatterProvider); string formatted = dateTime.ToString(“dd/MM/yyyy”); //write the format in which you want the date tobe converted Response.Write(“<br />” + formatted);

Convert Date Formats :

  //For ex., Convert MM/dd/YYYY to dd/MM/yyyy string date = “03/27/2008”; //format is MM/dd/yyyy DateTimeFormatInfo dateTimeFormatterProvider = DateTimeFormatInfo.CurrentInfo.Clone() as DateTimeFormatInfo; dateTimeFormatterProvider.ShortDatePattern = “MM/dd/yyyy”; //source date format DateTime dateTime = DateTime.Parse(date, dateTimeFormatterProvider); string formatted = dateTime.ToString(“dd/MM/yyyy”); //write the format in which you want the date tobe converted Response.Write(“<br />” + formatted);

Boxing and UnBoxing

    Boxing and unboxing enable value types to be treated as objects. Boxing a value type packages it inside an instance of the Object reference type. This allows the value type to be stored on the garbage collected heap. Unboxing extracts the value type from the object. In this example, the integer variable i is […]

Boxing and UnBoxing

    Boxing and unboxing enable value types to be treated as objects. Boxing a value type packages it inside an instance of the Object reference type. This allows the value type to be stored on the garbage collected heap. Unboxing extracts the value type from the object. In this example, the integer variable i is […]