Ejemplo n.º 1
0
        public static string RssIDSync()
        {
            //string kequa = Chuoi + "01";
            //var v = (from a in db.rssNews
            //         where a.DateInput.Value.Date.Equals(string.Format("{0:MM-dd-yyyy}", DateTime.Now))
            //         orderby a.DateInput descending
            //         select new { a.rssID }).First();

            //int number = int.Parse(v.ToString().Split('.')[1]);
            //if (v.rssID != "")
            //{

            //}
            return(Conn.CreateCode(string.Format("{0:ddMMyyyy}", Conn.CVDate(string.Format("{0:MM-dd-yyyy}", DateTime.Now))) + ".", "rssNews", "rssID"));
        }