Modify Birthdate to show Month only

 2 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Nabil
Veteran Member Send Private Message
Posts: 61
Veteran Member
I have a DME call for specific fields in HR11 and one of these fields is PEM-BIRTHDATE but instead of showing the whole date, I need to only show the month.

Is there an easy way to do this?

Thanks
Ragu Raghavan
Veteran Member Send Private Message
Posts: 477
Veteran Member
how about a substr ?
something like

var vDOB = sAGSInfo.selectSingleNode("//PEM-BIRTHDATE").text;
var vMM = vDOB.substr(0,2);
Nabil
Veteran Member Send Private Message
Posts: 61
Veteran Member
Thank you Ragu for the tip...It's working.