How to use ToShortDateString in linq lambda expression?

前端 未结 4 1508
眼角桃花
眼角桃花 2020-12-07 01:16

I need to call ToShortDateString in a linq query suing lambda expressions:

toRet.Notification = Repositories
    .portalDb.portal_notifications.OrderByDescen         


        
4条回答
  •  再見小時候
    2020-12-07 01:51

    Try this,

    You can also used with below code.

    Activity = String.Format("{0} {1}", String.Format("{0:dd-MMM-yyyy}", s.SLIDESHEETDATE), String.Format("{0:HH:mm}", s.ENDDATETIME))
    

提交回复
热议问题