c# - Convert DateTime to yyyyMMdd int -


is the fastest way to convert a dated time to an integer of yyyyMMdd format.

i.e. 01-Jan 2007 -> 20070101 (in int)?

  int x = date Year * 10000 + date Death * 100 + date Date  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -