Writing Date field to text field - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Writing Date field to text field

Last post 02-22-2018 08:32 AM by ctoper11. 2 replies.
Page 1 of 1 (3 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

  • 02-22-2018 08:32 AM In reply to

    Re: Writing Date field to text field

    Yes that did it. Thanks as always Hilary you're the best.
Page 1 of 1 (3 items)
Copyright © 2003-2018 Qdabra Software. All rights reserved.
View our Terms of Use.