Datetime in SharePoint Form Library - InfoPath Dev
in

InfoPath Dev

Datetime in SharePoint Form Library

Last post 03-06-2006 09:17 AM by ek38. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-27-2006 06:45 AM

    • ek38
    • Top 200 Contributor
    • Joined on 02-14-2006
    • Posts 54

    Datetime in SharePoint Form Library

    Our form is being published to SharePoint. We pick several columns to display in the SharePoint Form Library so users can sort, filter etc.

    One of the fields is a "Date" field. We specify in Infopath to only use the date and NOT the time, but when it publishes to SharePoint, the column value in SharePoint had both DATE and TIME. (Time is defaulted to 12:00 AM.

    We don't want the time to show up in the SharePoint Column. What can we do?

    E
  • 02-27-2006 12:03 PM In reply to

    Re: Datetime in SharePoint Form Library

    No matter what you select, you will always get both date and time since the field is a date object -you only select how to format a given date.

    In SharePoint formatting is done by styles (check "modify settings..." > Views > Styles

    If the styles in the list doesnt fill your requirements, here is a guide on how to add your own:

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_SP2003_ta/html/ODC_WSSAddingCustomViewStyle.asp

    hth
  • 03-06-2006 09:17 AM In reply to

    • ek38
    • Top 200 Contributor
    • Joined on 02-14-2006
    • Posts 54

    Re: Datetime in SharePoint Form Library

    We (Colette) found an easier way than adding or modifying styles. Hopefully there are not any negative implications.

    The Infopath date/time field is still published to SharePoint. However, we create another column in SharePoint. We can assign the new SharePoint Column to the value of the Infopath date/time field.

    On the SharePoint column, we specify the option that says "Date" only.

    Then in the particluar "View" we show the SharePoint column instead of the actual Infopath Column. Magically the column only shows the date and NOT the time...our desired results
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.