What is the fastest way to convert DateTime to an int representation of yyyyMMdd format.
i.e. 01-Jan-2007 β 20070101 (as in int)?
int x = date.Year * 10000 + date.Month * 100 + date.Day
int result = int.Parse(myDate.ToString("yyyyMMdd"));
Source: https://habr.com/ru/post/1300239/More articles:Saving the image of what the device context was drawing, wxPython - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1300235/how-to-use-jquery-attr-to-select-only-first-attribute&usg=ALkJrhjmml4cWoRi71fs6jBN0rc8GW-H6wwxpython, dc.GetAsBitmap returns an invalid bitmap - bitmapWhen your method fails, but succeeds ... Would you return failure or success? - language-agnostichow to kill setTimeout () function - actionscriptHow to cut a βholeβ inside a rectangular sprite to see the sprite under it? (ActionScript 3) - actionscript-3https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1300241/index.html&usg=ALkJrhhXAvFj85KRAfOKmD0MGEtRteMV_wHow to change default HTTP settings parameters in Java - javastd :: ostringstream woes - c ++Can I capture a Windows 7 DWM thumbnail window? - windows-7All Articles