Convert date format - InfoPath Dev
in

InfoPath Dev

Convert date format

Last post 07-07-2005 01:12 AM by Agni Jonnalagadda. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-06-2005 08:40 PM

    Convert date format

    I need help converting yyyy-mm-dd date format to mm/dd/yyyy. Why does Infopath only accept yyyy-mm-dd date format but javascript Date object doesn't? I'm getting NaN error. Please help. Thanks ahead of time.


  • 07-07-2005 12:26 AM In reply to

    Hi,

    Xml has a format to store the date it's yyyy-mm-dd and if you want to save in another format you have to make a string.

    But you can also make subsatring of your date for have the coreect format but that is not valid according to your XML schema!

    I'll hope this help

    ++

    Thierry

    Every moment hesitated is a moment gone for life!!! Think about it
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 07-07-2005 01:12 AM In reply to

    Xml accepts only yyyy-mm-dd format. If you want mm/dd/yyyy format only for visual purpose then you can change format in the InfoPath UI.

    If want to save in mm/dd/yyyy format then as Thierry said you have to change the type to string istead of Date.

    Agni
    InfoPathDev India
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.