Modify Birthdate to show Month only

 2 Replies
 0 Subscribed to this topic
 11 Subscribed to this forum
Sort:
Author
Messages
Nabil
Veteran Member
Posts: 61
Veteran Member
New Poster
New Poster
Congrats on posting!
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
Posts: 477
Veteran Member
New Poster
New Poster
Congrats on posting!
Engaged Poster
Engaged Poster
Wow, you're on a roll!
Avid Poster
Avid Poster
Seriously, you're a posting maniac!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
how about a substr ?
something like

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