Summary
This command returns the current complete date and time.
Attributes
- none
Parameters
- none
Example
<script scriptId="currentTimeDifference_Month_Alert">
<body>
<s:alert>
<s:expression>
<s:ne>
<s:stringPath path=":value" type="string"/>
<s:string value="m"/>
</s:ne>
</s:expression>
<s:correction>
<s:string value="optional"/>
</s:correction>
<s:text>
<s:concat>
<s:string value="Current Date and Time is: '"/>
<s:toString>
<s:currentDateTime/>
<s:string value='MM-dd-yyyy HH:mm' />
</s:toString>
<s:string value="' "/>
<s:string value="Difference between 'Date Time 1:' and Current Date and Time is: '"/>
<s:toString>
<s:dateDiff method="default" unit="month">
<s:from>
<s:toDate>
<s:toString>
<s:datePath path=".dddmTime1:value" type="date"/>
<s:string value="MM-dd-yyyy HH:mm"/>
</s:toString>
<s:string value="MM-dd-yyyy HH:mm"/>
</s:toDate>
</s:from>
<s:to>
<s:toDate>
<s:toString>
<s:currentDateTime/>
<s:string value="MM-dd-yyyy HH:mm"/>
</s:toString>
<s:string value="MM-dd-yyyy HH:mm"/>
</s:toDate>
</s:to>
</s:dateDiff>
</s:toString>
<s:string value="' Months"/>
</s:concat>
</s:text>
</s:alert>
</body>
<target action="update" shouldReconcile="true" typeId="dddmTimeUnit" when="preprocess"/>
<dependent path="/scriptContainerdateDifferenceDefault[n].dddmTime1"/>
</script>Need more help?
Please visit the Fountayn Contact Information page.