Sunday, October 19, 2014

Calculate days difference in Dataview webpart

Share/Save/Bookmark

To calculate days difference from 2 date time type fields in XSLT, hidden function DateTimeTick from ddwrt can be used as below,

number((number(ddrwt:DateTimeTick(string(@MeetingStartDate))) - number(ddwrt:DateTimeTick(string(@MeetingEndDate )))) div 864000000000)

 Subscribe

No comments:

Post a Comment