Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

SFU​.getDateTimeInStringFormat()

  • Last UpdatedJun 25, 2024
  • 1 minute read

Use getDateTimeInStringFormat() method to get the date time from the string format.

Syntax

sRetVal = SFU.getDateTimeInStringFormat(dateTime, skelta.forms.constants.dateFormats.dateTimeFormatForCoreValue);

Parameters

Parameter

Description

dateTime

Date and Time object.

Note: The time zone from the JavaScript Date object is not considered.

skelta.forms.constants.dateFormats.dateTimeFormatForCoreValue

Date and Time Formate Constant.

Return Value

This method returns a date time string.

Example

// Show date and time in the Date Time control from the value of the Forms Parameter.

var myDateTime = control.topLevelForm.formParameters["DateTimeParam"].value;

var OutDateTime = SFU.getDateTimeInStringFormat(myDateTime, skelta.forms.constants.dateFormats.dateTimeFormatForCoreValue);

control.findById("D1").value = OutDateTime;

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in