使用 jQuery 之类的东西
$('#buttonId').click(function(){
var date = $('#dateFieldID').val(); // "10/11/2013"
var month = date.substring(0,2); //Grab first two characters of the date string = 10
alert(month); // here is your month
// do something with your month
});