Wednesday, 26 September 2018

How to Convert Date in to String in the OAF Controller

How to Convert Date in to String in the OAF Controller

In this post , We will discuss how we can  Convert Date in to String in the OAF Controller. We often need a Requirment in OAF to store the dates in the string variables. Here below I will share the sample of OAF controller for How to Convert Date in to String in the OAF Controller.
 
 
 

How to Convert Date in to String in the OAF Controller

 
Date Creationdate = (Date)oaapplicationmodule.findViewObject("XXSUPPLIERVO").first().getAttribute("CreationDate");
 
if (Creationdate  != null)
 
{
 
string dat = oapagecontext.getOANLServices().dateToString(Creationdate);
 
 
}

0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *