如何设定Powershell输出日期的格式

2025-05-17 13:44:00

1、打开Windows Powershell程序窗口;

如何设定Powershell输出日期的格式

2、我们准备查询日期,所以使用 get-date 指令;

如何设定Powershell输出日期的格式

3、设定日期格式参数 -format ;

如何设定Powershell输出日期的格式

4、设定需要的日期格式 yy-mm-dd;

如何设定Powershell输出日期的格式

5、点击回车后,自动输入相应格式的日期;

如何设定Powershell输出日期的格式

6、我们再来演示输入一个其他格式的日期。

如何设定Powershell输出日期的格式
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢