Thursday, 3 October 2019

HOW TO GET DATE MONTH and YEAR FROM A DATE

HOW TO GET DATE MONTH and YEAR FROM A DATE 

Below code fetches the date,month and year from a date.

public void getdatedetails()
{
TransDate                        reportedDate;
Int                                    day, month, year;

reportedDate = getServerDate();

Get Day from date
day      = dayOfMth(reportedDate);

Get Month from date
month  = mthOfYr(reportedDate);

Get Year from date

year      = year(reportedDate);
}

thanks,
Vikas Mehta.

No comments:

Post a Comment

AZURE INTERVIEW QUESTIONS AND ANSWERS

AZURE INTERVIEW QUESTIONS AND ANSWERES 2021 2. What is cloud computing? Explanation:  It is the use of servers on the internet to “store...