Cleanup the Axiom project
This commit is contained in:
@@ -4,13 +4,11 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using System.Globalization;
|
||||
using log4net;
|
||||
|
||||
namespace Axiom.Utils
|
||||
{
|
||||
public class Utility
|
||||
{
|
||||
private static ILog logger = LogManager.GetLogger(typeof(Utility));
|
||||
private Utility()
|
||||
{
|
||||
}
|
||||
@@ -64,7 +62,6 @@ namespace Axiom.Utils
|
||||
}
|
||||
public static DateTime ParseDate(String strDate)
|
||||
{
|
||||
logger.InfoFormat("Parsing date {0}",strDate);
|
||||
System.Globalization.CultureInfo cultureInfo = new System.Globalization.CultureInfo("en-US");
|
||||
String[] formats = new[] { "yyyy/MM/dd","M-d-yyyy", "dd-MM-yyyy", "MM-dd-yyyy", "M.d.yyyy", "dd.MM.yyyy", "MM.dd.yyyy","yyyyMMdd" }.Union(cultureInfo.DateTimeFormat.GetAllDateTimePatterns()).ToArray();
|
||||
strDate = strDate.Trim();
|
||||
|
||||
Reference in New Issue
Block a user