Hi Aaron,
Its there to better support Persian Date grouping in the blog. There are a couple of stored procs that use those functions and they are called from DBBlog.cs if the Culture of the executing thread is fa-IR (Persian)
Example:
public static IDataReader GetBlogEntriesByMonth(int month, int year, int moduleId)
{
if (CultureInfo.CurrentCulture.Name == "fa-IR")
{
return GetBlogEntriesByMonthPersian(month, year, moduleId);
}
SqlParameterHelper sph = new SqlParameterHelper(GetConnectionString(), "mp_Blog_SelectByMonth", 3);
sph.DefineSqlParameter("@Month", SqlDbType.Int, ParameterDirection.Input, month);
sph.DefineSqlParameter("@Year", SqlDbType.Int, ParameterDirection.Input, year);
sph.DefineSqlParameter("@ModuleID", SqlDbType.Int, ParameterDirection.Input, moduleId);
return sph.ExecuteReader();
}
Best,
Joe