Answered How to get Year format without code

  • Tuesday, June 02, 2009 6:39 PM
     
     
    Hi,
      Does anybody can help ? I can't find string.format() on InfoPath formula.

    Thanks

All Replies

  • Wednesday, June 03, 2009 4:45 AM
     
     
    HI, You can use "Today()" or "Now()" function to get that date and year format in the infopath.
    Anuma Chinthapalli / http://www.GGKTech.com
  • Wednesday, June 03, 2009 8:45 AM
     
     

    Following article provides steps to configure Date format

    http://office.microsoft.com/en-gb/infopath/HA100653071033.aspx



    Regards
    Ashraf ul Islam
    Sharepoint Consultant
  • Friday, June 05, 2009 4:48 PM
     
     
    Thanks, but I need Year only.
  • Friday, June 05, 2009 4:54 PM
     
     
    Thanks, but I need Year only.

    Use the above with a substring command to pull out just the year.
    SharePoint Architect - Planet Technologies - 4-Year Microsoft Federal Partner of the Year (2005-2008)
  • Friday, June 05, 2009 4:56 PM
     
     
    You can display that function:
    substring-before(today(),"-")
    http://alecpojidaev.wordpress.com
  • Saturday, June 06, 2009 5:36 AM
     
     Answered

    Hi,

    This will give you only year.

    substring(today(), 0, 5)

    Hope this helps.

    Thanks,
    Rajitha.

    • Marked As Answer by JamesLiang Monday, June 08, 2009 9:28 PM
    •  
  • Friday, August 17, 2012 7:18 PM
     
     
    This work for me .. thank you