Skip to main content

RtBaseline_JSDateTime2WS

The RtBaseline_JSDateTime2WS method/function converts the Javascript DateTime passed in the input field, to the XML DateTime representation to be consumed by ASP.NET XML Web Services. This function should be used only for Microsoft AJAX or client/asynchronous integration.

Web Method Synopsis (C# Syntax)

public string RtBaseline\_JSDateTime2WS(string sSourceDate);

Output Result

STRING ® Localized (with timezone and daylight saving correction) ASP.NET representation of the passed JavaScript DateTime. The function takes into account the region and language settings of the running user. ASP.NET XML format: \<the format defined in the Windows control panel>

Input Parameters

sSourceDate (STRING) ® The source date to be converted. JavaScript format: YYYY-MM-DDTHH:mm:ss