Writing Date field to text field - InfoPath Dev

InfoPath Dev

Having trouble finding a blog or post that answers your question? Check out our Custom Search Page

Writing Date field to text field

Last post 02-21-2018 07:58 AM by Hilary Stoupa. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-13-2018 08:19 AM

    Writing Date field to text field

    Hello, I'm trying to write a date field into a text field. I'm using the following expression msxsl:format-date(Archive Date, "mm-dd-yyyy") as the default value in my text field and a rule to run on the date field that writes to the text one. It works when I preview it in Infopath but when I try to publish it I get an error that it's an unsupported expression. Is there another one I can use? I simply want the above date format. Any help would be very much appreciated. Thank you
  • 02-21-2018 07:58 AM In reply to

    Re: Writing Date field to text field

     You can use substring formulas to extract the parts of the date & concat to put them together in the format you want - here's a sample form with a few views - the Date Part view will show you the substring formulas. Not everything that is supported in the Filler (preview) will work in Browser, as you've found w/ your publishing error.

    Hilary Stoupa

Page 1 of 1 (2 items)
Copyright © 2003-2018 Qdabra Software. All rights reserved.
View our Terms of Use.