Hi All,
I am having a problem with getting month using script mediator, it always
give (month - 1) value, As an example if we pass currentDate as 2015/12/31,
it gives month as 11 not 12.
What is the reason for this behavior ??
<script language="js">
var currentDate = new Date(mc.getProperty('currentDate')); var mm
= currentDate.getMonth();
mc.setProperty("month", currentDateString);
</script>
Thanks
Godwin
--
*Godwin Amila Shrimal*
Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
mobile: *+94772264165*
linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
twitter: https://twitter.com/godwinamila
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev