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.
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