使用Powreshell查询当前年份的方法

【使用Powreshell查询当前年份的方法】Powershell功能壮大 , 本家儿要依靠于它壮大的指令集 。 其复杂的指令集 , 还带有很多参数 , 加倍延展了Powershell的功能 。

需要这些哦
Windows Powershell
电脑
方式/
1打开系统中的Windows Powershell程序窗口;

使用Powreshell查询当前年份的方法

文章插图

2在Powershell程序中输入(get-date);

使用Powreshell查询当前年份的方法

文章插图

3我们筹办查询当前的年份 , 所以利用 .year 参数;

使用Powreshell查询当前年份的方法

文章插图

4点击回车后 , 主动输出当前的年份;

使用Powreshell查询当前年份的方法

文章插图

5查询了当前的年份 , 若何查询当前的月份呢?

使用Powreshell查询当前年份的方法

文章插图

使用Powreshell查询当前年份的方法

文章插图

6若何查询当前是一月中的第几天呢?

使用Powreshell查询当前年份的方法

文章插图

使用Powreshell查询当前年份的方法

文章插图

注重事项Windows Powershell程序已经酿成了Windows中最常用的指令东西;
一个get-date指令 , 可以延长出很多用法 , 可以看到Powershell的功能延展性是何等的壮大;


以上内容就是使用Powreshell查询当前年份的方法的内容啦 , 希望对你有所帮助哦!

    推荐阅读