Getting Day, Month and Year from Date

Sample Code:

Date datobj;
Integer dy = datobj.day();
Integer mon = datobj.month();
Integer yr = datobj.year();


Cheers!!!

4 comments:

  1. nice post Mr.Magulan..its very helpful for beginners please keep on posting these small stuffs ...

    ReplyDelete
    Replies
    1. Thanks Moseen.
      You are always welcome..

      Delete