C# convert a DateTime to an int value




 long dtosDateValue = long.Parse(DateTime.Now.ToString("yyyyMMdd"));  
 long dtosTimeValue = long.Parse(DateTime.Now.ToString("HHmmss"));  
 long dtosDateTimeValue = long.Parse(DateTime.Now.ToString("yyyyMMddHHmmss"));  

Popular posts from this blog

WPF Crystal Report Viewer Using SAP

mvc razor textboxfor change event change another textboxfor value

ASP.NET MVC razor SAP Crystal report