Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Calculate ISO 8601 Week Number from SharePoint Date Picker

$
0
0

Hi All,

I am looking to Calculate the ISO 8601 Week Number (1-52) from a SharePoint Date Picker, and output the Week Number to another SharePoint field (Single line of text).

Date Picker Field: DateOfWork

Text Field: ISOWeek

So far i have got:

var WorkDate = $("input[title='DateOfWork']").val

$('WorkDate').datepicker({ onSelect: function(dateText, inst) { alert($.datepicker.iso8601Week(new Date(dateText))) } });

and i want to Insert the ISO 8601 Week into a the ISOWeek like so:

 $("input[title='ISOWeek']").val(WorkDate);

Any ideas?

Thanks, Tucker




Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>