locked
sort date and month in data view webpart. RRS feed

  • Question

  • i need to sort current month and date by ascending order do not consider year,

    current month is filtered, i need to write xslt expression for arranging the date in ascending order.


    Monday, August 27, 2012 7:51 AM

All replies

  • Hi,

    refer 

    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/acc051dd-7e69-4bdb-aa0d-043589307b39

    and change the DateOnly parameter to "False"

    Let us know if his helps


    Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights

    Tuesday, August 28, 2012 1:22 PM
  • Thanks for your reply....... 

    i wrote the code in xslt, so i have to  edit sort expression in sort and group

    i choose the field name " Date of joining" and choose edit sort expression,

    so now i have to modify this formula,

    @date of joining,

    i need the xslt formula for the current Month and date in ascending order.

    Wednesday, August 29, 2012 7:23 AM
  • Could you please provide us your XSLT code / formula ?

    Warm Regards, Pratik Vyas | SharePoint Consultant | http://sharepointpratik.blogspot.com/ | Posting is provided "AS IS" with no warranties, and confers no rights

    Wednesday, August 29, 2012 4:27 PM
  • In my Home page have to modify the webpart for month and date in ascending order

    My Webpart is looking like;

    Service anniversary

                august 2,2011

                august 21,2011

                august 3,2012

    so i have to sort the current date and month in ascending order... i edit in designer and choosen my  webpart-> sort and group->edit sort expression-> in Edit xpath expression, 

    code is written as

    @Date_x002d_Joining

    so here i need to do some changes..

    Thursday, August 30, 2012 5:46 AM