简体   繁体   中英

Convert DateTimePicker to NTTE time format with Powershell

I would like to change an entry inside Active Directory which is displayed in NTTE time format. I am using a DateTimePicker and found no solution how to convert the DateTimePicker value to NTTE.

Is there a function that is able to read the value from it and convert it?

DateTime从值DateTimePicker可以转换为与NTTE 一个方法调用

$ADValue = $DateTimePicker.Value.ToFileTime()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM