In this below script, Convert UTC Date Time to local/EST Hours
In this article , we will use default java-script action
Type 1:
var localTime = new Date();
var localKolkata = moment.tz(localTime, "Asia/Kolkata").format("hh:mm:ss");
Javascript script provide date and time format.
Type 2:
function getLocalTime(i)...
Showing posts with label javascript:;. Show all posts
Showing posts with label javascript:;. Show all posts
Friday, July 24, 2020
Tuesday, April 26, 2016
26
Apr
In this below script, Item Adding / Item Added Event Receiver
Ways to retrieve data are:
Properties.ListItem[«FieldName »]
Properties.AfterProperties[«FieldName »]
Properties.BeforeProperties[«FieldName »]
we must add the synchronization parameter
to our xml definition.
<Receiver>
<Name>EventReceiver1ItemAdded</Name>
<Type>ItemAdded</Type>
<Assembly>$SharePoint.Project.AssemblyFullName$</Assembly>
<Class>TutoTaxonomy.EventReceiver1.EventReceiver1</Class>
<SequenceNumber>10000</SequenceNumber>
<Synchronization>Synchronous</Synchronization>
</Receiver>
In...
Saturday, April 9, 2016
09
Apr
In this below script, Print css using Window.print
<style type="text/css" media="print">
@page {
size: auto; /* auto is the initial value */
margin: 0; /* this affects the margin in the printer settings */
}
</style>
@page :left {
margin-left: 4cm;
margin-right: 3cm;
}
@page :right {
...
In this below script, Freeze header in SharePoint List 2013
The stickyHeaders widget as part of the Sharepoint List .
_spBodyOnLoadFunctionNames.push("stickyHeaders");
function stickyHeaders() {//-----------------------------------------------------------------------------------------------------------------------------------------------...
Thursday, March 31, 2016
In this below script, Turn on Line Numbers In Visual Studio
Line numbers are not on by default. Tools -> Options -> Text Editor -> All Languages -> General -> Display and check Line numbers: ...