Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James Dimmer 12 posts 155 karma points
    Aug 31, 2017 @ 16:24
    James Dimmer
    0

    Order of Sales Listing

    Hi,

    is there any way I can change the default ordering of the Sales Listing in the back end to be date instead of the invoice number?

    Thanks, James

  • Allan 37 posts 185 karma points
    Sep 14, 2017 @ 15:12
    Allan
    0

    If your problem is just working out the week numbers then this should work...

    var currentCulture = CultureInfo.CurrentCulture;
    // Then inside the child pages loop...
    var weekNo = currentCulture.Calendar.GetWeekOfYear( new DateTime(2017,09, 14),currentCulture.DateTimeFormat.CalendarWeekRule,currentCulture.DateTimeFormat.FirstDayOfWeek);
    
Please Sign in or register to post replies

Write your reply to:

Draft