C# | ASP.net | jQuery | Javascript | linq

  • Facebook
  • RSS

Parse date in C#

By  Avinash | In C# DateTime , DateTime CSharp
In this post we will look how the string with date and time to be converted to DateTime. DateTime class provides Parse() method that takes string parameter that contains date and time. We can convert below kind of string to DateTime using DateTime.Parse()...
Read More
8:32:00 PM
0

C# DateTime Now

By  Avinash
...
Read More
8:31:00 PM
0

Add Years to date

By  Avinash | In C# DateTime , DateTime CSharp
In C# programming some times we  need to add years to the current year. This situation happens when we need to keep things in some date range. Means for example if I want to show date range from this year to next or next two years or specified...
Read More
11:30:00 PM
0

Add days in date

By  Avinash | In C# DateTime , DateTime CSharp
Some times we need to add days in the date. This is needed when we want to give some days duration to perform some actions based on date.For example if we want to publish some article for two days and then hide or delete it after two days.So to add...
Read More
11:29:00 PM
0

Get Today’s Date

By  Avinash | In C# DateTime , DateTime CSharp
When dealing with dates most of the time we need to get current date or today’s date in C# code to perform some operations. DateTime class provides DateTime.Today property to get today’s date. Today property returns current date only and does not include...
Read More
11:25:00 PM
0

Get only date part from datetime

By  Avinash | In C# DateTime , DateTime CSharp
In some cases we need to get the date with date and time with midnight time like 00:00:00 in C# code to perform some operations. DateTime class provides DateTime.Date property to get date and time with time like 00:00:00. Sample code to get today’s...
Read More
11:24:00 PM
0

Get full name of the day C# datetime

By  Avinash | In C# DateTime , DateTime CSharp
In most C# programs while formatting the dates we need to show complete or full name of the day. Here we are going to see how “dddd” format specifier is used to show full name of the day.Sample code to show the full name of the day [C#] using System; using...
Read More
11:20:00 PM
0

Date in Month Day, Year Format (MMMM dd, yyyy)

By  Avinash | In C# DateTime , DateTime CSharp
Some times we need to show date in Month Day, Year Format like January 12, 2012. Here we will see how to format DateTime using string formatter. Sample code to show date time in Month Day, Year format [C#] using System; using System.Globalization; public...
Read More
10:40:00 PM
0

Date in MM-dd-yy format

By  Avinash | In C# DateTime , DateTime CSharp
Most of the time in C# code we need to format datetime as per requirement. Here we are going to discuss how to format date in MM-dd-yy format.So when we give input date as “10-29-11” then date will get formatted like “10/29/11”.Sample code to format...
Read More
10:08:00 PM
0

do Postback in Javascript [ASP.NET]

By  Avinash | In Javascript
In this post we will see how to postback page in ASP.NET from the client side using JavaScript. In some cases we need to postback page from client side i.e. by using JavaScript. We can use __doPostBack() to postback page from client script using JavaScript.Or...
Read More
9:48:00 PM
0
Newer Posts Older Posts Home
  • Home
  • jQuery
  • C#
  • ASP.Net
  • Linq

Search

Popular Posts

  • Detect if JQuery dialog is open
    when using a JQuery dialog, in some cases we neeed to check if dialog is open or not. In below example we will see how do to detect if a JQu...
  • C# interview questions and answers
    C# aka. "C sharp" is a programming language runs on the .NET Framework and used for building a variety of applications. C# is typ...
  • embed resources like .js, .css or images in c#
    In this post we will learn how to embed the resources like javascript file, images, .css files in class libraries. When creating custom con...
  • Set dropdown text selected from textbox value
    In some cases we need to set dropdown list items exact text by matching the value entered in textbox. For that purpose we can use .keyup eve...
  • c# regex for email address
    In c# while dealing with email we need to validate email address. In order to validate email address we just check whether the email address...
  • jQuery templates
    jQuery templates is a useful plugin developed by Microsofts's ASP.NET team in collaboration with jquery open source team. Templates help...
  • C# convert array to list
    In this post we will se how to convert array to list. We need to convert array object to generic list many times in C# programming. Converti...
  • Dynamic in C# 4.0
    Dynamic type is introduced C# 4.0. As its name specifies type of the defined variable is decided dynamically at runtime. At compile time the...
  • Lazy loading C#. Lazy initialization.
    C# 4.0 introduced new class Lazy which provided for Lazy initialization. Lazy instantiation here means object is not created until it is ge...
  • Tuple in C# 4.0
    Tuple is a new class introduced in C# 4.0. Tuple basically provides way to group the items of different data types. A static Tuple class pro...

Recent Posts

Categories

  • asp.net
  • asp.net checkbox
  • asp.net checkboxlist
  • asp.net gridview
  • blogger tricks
  • blogspot tricks
  • C#
  • C# array
  • C# DateTime
  • C# list
  • C# Strings
  • csharp
  • DateTime CSharp
  • Interview
  • Interview questions
  • Javascript
  • jQuery
  • jQuery Ajax
  • jQuery Checkbox
  • jQuery click
  • jQuery dialog
  • jQuery dropdown
  • jQuery mouse events
  • jQuery radio button
  • jQuery validations
  • json
  • Linq
  • validate email
  • wcf

Blog Archive

  • ▼  2015 ( 1 )
    • ▼  August ( 1 )
      • ▼  Aug 21 ( 1 )
        • C# interview questions and answers
  • ►  2013 ( 5 )
    • ►  April ( 1 )
      • ►  Apr 25 ( 1 )
    • ►  March ( 4 )
      • ►  Mar 12 ( 2 )
      • ►  Mar 11 ( 2 )
  • ►  2012 ( 81 )
    • ►  November ( 8 )
      • ►  Nov 18 ( 2 )
      • ►  Nov 16 ( 1 )
      • ►  Nov 14 ( 1 )
      • ►  Nov 11 ( 1 )
      • ►  Nov 04 ( 2 )
      • ►  Nov 02 ( 1 )
    • ►  October ( 1 )
      • ►  Oct 01 ( 1 )
    • ►  September ( 2 )
      • ►  Sep 28 ( 1 )
      • ►  Sep 27 ( 1 )
    • ►  May ( 3 )
      • ►  May 13 ( 1 )
      • ►  May 08 ( 2 )
    • ►  April ( 5 )
      • ►  Apr 24 ( 1 )
      • ►  Apr 20 ( 3 )
      • ►  Apr 07 ( 1 )
    • ►  March ( 22 )
      • ►  Mar 30 ( 1 )
      • ►  Mar 29 ( 1 )
      • ►  Mar 28 ( 2 )
      • ►  Mar 27 ( 1 )
      • ►  Mar 26 ( 1 )
      • ►  Mar 25 ( 1 )
      • ►  Mar 24 ( 1 )
      • ►  Mar 23 ( 1 )
      • ►  Mar 20 ( 2 )
      • ►  Mar 15 ( 1 )
      • ►  Mar 10 ( 1 )
      • ►  Mar 07 ( 1 )
      • ►  Mar 06 ( 1 )
      • ►  Mar 04 ( 1 )
      • ►  Mar 03 ( 4 )
      • ►  Mar 02 ( 2 )
    • ►  February ( 17 )
      • ►  Feb 29 ( 1 )
      • ►  Feb 28 ( 1 )
      • ►  Feb 26 ( 2 )
      • ►  Feb 25 ( 4 )
      • ►  Feb 23 ( 1 )
      • ►  Feb 22 ( 2 )
      • ►  Feb 21 ( 1 )
      • ►  Feb 18 ( 1 )
      • ►  Feb 16 ( 1 )
      • ►  Feb 10 ( 2 )
      • ►  Feb 06 ( 1 )
    • ►  January ( 23 )
      • ►  Jan 25 ( 2 )
      • ►  Jan 23 ( 2 )
      • ►  Jan 19 ( 2 )
      • ►  Jan 13 ( 6 )
      • ►  Jan 12 ( 7 )
      • ►  Jan 11 ( 1 )
      • ►  Jan 10 ( 2 )
      • ►  Jan 07 ( 1 )
  • ►  2011 ( 23 )
    • ►  December ( 7 )
      • ►  Dec 28 ( 1 )
      • ►  Dec 26 ( 1 )
      • ►  Dec 19 ( 1 )
      • ►  Dec 16 ( 2 )
      • ►  Dec 06 ( 1 )
      • ►  Dec 05 ( 1 )
    • ►  November ( 2 )
      • ►  Nov 30 ( 2 )
    • ►  September ( 9 )
      • ►  Sep 29 ( 1 )
      • ►  Sep 28 ( 2 )
      • ►  Sep 08 ( 2 )
      • ►  Sep 07 ( 3 )
      • ►  Sep 02 ( 1 )
    • ►  August ( 5 )
      • ►  Aug 26 ( 3 )
      • ►  Aug 25 ( 2 )

Copyright © 2025 C# | ASP.net | jQuery | Javascript | linq | Powered by Blogger