Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

WebArticlesForumsFAQs
JavaScript
ASP
ASP.NET
WCF

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

Operating SysArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Lounge
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

  View Other SharePoint Posts   Ask New Question  Ask New Question With Power Editor

Sharepoint & InfoPath
Kerrie Jones posted at Wednesday, November 04, 2009 7:00 PM

I am trying to submit the contents of a repeating table in an InfoPath form to a new SharePoint list.  Everything works well until I try and manipulate one of the date fields.

I have a Date Picker “DateEnd” with a data type of text and a format of dd/mm/yyyy. 

If I pass the date as shown below everything is fine

 

Dim PickEnd As String = rows.Current.SelectSingleNode("my:PickEnd", NamespaceManager).Value

However what I need to do is add 24 hours to the time.  So as a test I have tried all of the following options.

'**NO RESULT 1

Dim PickEnd As Date = rows.Current.SelectSingleNode("my:PickEnd", NamespaceManager).Value

 

'**NO RESULT 2
Dim x As Date = CType(rows.Current.SelectSingleNode("my:PickEnd", NamespaceManager).Value, Date)
Dim PickEnd As String = x

 

'**NO RESULT 3
Dim PickEnd As String = CType(rows.Current.SelectSingleNode("my:PickEnd", NamespaceManager).Value, Date)

 

 

'**NO RESULT 4

Dim Workdate As Date

Workdate = rows.Current.SelectSingleNode("my:PickEnd", NamespaceManager).Value

Workdate = Workdate.AddSeconds(1)

PickEnd = Workdate.ToString

 

In saying “NO RESULT”, I get no data in my new list.  How can I manipulate the date prior to sending it to the list?  The “PickEnd” field in the new list is defined as Date/Time.

Reply    Reply Using Power Editor
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0