(config)
| 2637 | } |
| 2638 | |
| 2639 | function currentDateArray(config) { |
| 2640 | var now = new Date(); |
| 2641 | if (config._useUTC) { |
| 2642 | return [now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate()]; |
| 2643 | } |
| 2644 | return [now.getFullYear(), now.getMonth(), now.getDate()]; |
| 2645 | } |
| 2646 | |
| 2647 | // convert an array to a date. |
| 2648 | // the array should mirror the parameters below |