Advertisement
Jacob_Evans

Untitled

Feb 27th, 2019
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. New-UDInput -Content {
  2. New-UDInputField -Type "textbox" -Name "volReason" -Placeholder "Reason for hours?"
  3. New-UDInputField -Type "textbox" -Name "volHoursEarned" -Placeholder "Number of hours earned?"
  4. New-UDInputField -Type "date" -Name "volEarnedDate" -Placeholder "Volunteer Date?"
  5. } -Endpoint {
  6. param($volReason, $volEarnedDate, $volHoursEarned)
  7. $volEarnedDate = $volEarnedDate.Split("-")
  8. $volHoursEarned = 0 + $volHoursEarned
  9. $volEarnedDate = Get-Date -Month $volEarnedDate[1] -Day $volEarnedDate[0] -Year $volEarnedDate[2]
  10. }
Advertisement
RAW Paste Data Copied
Advertisement