TechBrij TechBrij

  • Home
  • Categories
  • About
  • Notes

Tag: timespan

Aug 29, 2010

Convert TimeSpan to year, month, date (Age Calculation) in .NET

Generally, it is required to express Datetime difference in terms of year, month or day format. Basic example of this is the Age calculation. In .NET Date difference is expressed in timespan. If you require age only in Year then

People Also Like

  • jQuery Date Range Picker To Select Year, Month Or Quarter Only
  • Month Range Picker using jQuery UI Datepicker
  • String to DateTime, FormatException and ASP.NET
  • Pivot C# Array or DataTable: Convert a Column To a Row with LINQ
  • Creating a Chart with jQuery Flot and ASP.NET Web API

Follow Us

  • 2100+fansLike
  • 500+subscribersSubscribe
  • 200+followersSubscribe
  • 250+followersFollow

Subscribe via Email

Categories

  • Node.js
  • ASP.NET, ASP.NET MVC, ASP.NET Core
  • JavaScript, jQuery
  • AngularJS
  • Blogging & SEO
  • HTML,CSS
  • Useful Windows Run Commands
  • ASP.NET MVC Cheat Sheet
  • Basic Ubuntu Linux Commands
  • Projects
  • Cheat-sheets (Notes)
  • Online Tools
  • More Categories..

Recent Comments

  • Philip on A Better Way to Add Google Custom Search to Wordpress/PHP Site

    Thank you! Works just great.

  • Craig Johnson on How to display SSRS Report in ASP.NET MVC Application

    "you will automatically get “ReportViewerWebForm

  • Simon on Copy/Extract HTML Dropdownlist Options in Plain Text

    Works great !!! Thanks !!!

  • Willow on Grouping Data in ASP.NET Gridview Control

    Thanks, that was very helpful man!

  • shubham choudhary on How to display SSRS Report in ASP.NET MVC Application

    Hi I am getting error : Server Error in '/' Applic

About Me | Contact Us | Disclaimer | Submit Guest Post | #Slack
Copyright © 2019 TechBrij. All Rights Reserved.