lib/commands/screenshot.js
function () {
    var date = new Date();
    var dateStr = '';
    var day = date.getDate();
    var month = date.getMonth();

    month = (month+'').length === 1 ? '0' + month : month;
    day = (day+'').length === 1 ? '0' + day : day;

    dateStr += month + '_';
    dateStr += day + '_';
    dateStr += date.getFullYear();

    return dateStr;
  }
function () {
    var date = new Date();
    var dateStr = '';
    var day = date.getDate();
    var month = date.getMonth();

    month = (month+'').length === 1 ? '0' + month : month;
    day = (day+'').length === 1 ? '0' + day : day;

    dateStr += month + '_';
    dateStr += day + '_';
    dateStr += date.getFullYear();

    return dateStr;
  }
function ( ) { var date = new Date ( ) ; var dateStr = '' ; var day = date . getDate ( ) ; var month = date . getMonth ( ) ; month = ( month + '' ) . length === 1 ? '0' + month : month ; day = ( day + '' ) . length === 1 ? '0' + day : day ; dateStr += month + '_' ; dateStr += day + '_' ; dateStr += date . getFullYear ( ) ; return dateStr ; }
Return the formatted date

@method _parseDate
@return {string} Date
@private
Return the formatted date