Change datetimepicker value to the current date
Posted: Mon Jul 07, 2014 6:53 am
Hi everybody,
I'm here since I have a little problem with the Datetimepicker Form.
I use PowerShell Studio 2014 and I can't fix the default value of an Datetimepicker object named "expirationDate" to the current date.
I've tried to set this one with these commands :
1) $expirationDate.Value.Date = [system.datetime](Get-Date -format )
2) $expirationDate.Value = Get-Date -format g
3) $expirationDate.Value = [system.datetime](Get-Date -format g)
But none match.
On the Designer of Powershell Studio, when the Datetimepicker object is selected, I can't choose a dynamic variable "current date" on the parameter "value". I don't know how to do that. I've searched a long time on the internet but nobody talk about that.
Did someone have a solution for this issue?
Best regards .
I'm here since I have a little problem with the Datetimepicker Form.
I use PowerShell Studio 2014 and I can't fix the default value of an Datetimepicker object named "expirationDate" to the current date.
I've tried to set this one with these commands :
1) $expirationDate.Value.Date = [system.datetime](Get-Date -format )
2) $expirationDate.Value = Get-Date -format g
3) $expirationDate.Value = [system.datetime](Get-Date -format g)
But none match.
On the Designer of Powershell Studio, when the Datetimepicker object is selected, I can't choose a dynamic variable "current date" on the parameter "value". I don't know how to do that. I've searched a long time on the internet but nobody talk about that.
Did someone have a solution for this issue?
Best regards .