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

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

Best practice for URL redirection in ASP.NET web application -