Friday, 19 June 2015

Assign the DateTime Field Using Sitecore API

var date = Datetime.Now;
                                if (!string.IsNullOrEmpty(date))
                                    var dateTime = DateTime.Parse(date, CultureInfo.InvariantCulture);
                                    var isoDate = DateUtil.ToIsoDate(dateTime);
                                    Item["Date"] = isoDate;

More Info

No comments:

Post a Comment

Featured post

Getting Started With SOLR

Getting Started with Solr ·           Features o    Hit highlighting o    Auto correction o    Faceted Search o    Multi lan...