Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1838542
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:29:29+00:00 2026-05-17T06:29:29+00:00

I have a WCF service that requires some DateTime parameters to be passed in.

  • 0

I have a WCF service that requires some DateTime parameters to be passed in.
The service will be used globally and be consumed by different clients (.NET, PHP etc).
What is the best format to get the datetime parameters in?
I was thinking of making them string parameters, and then advising the users of the format needed.

Maybe something like “yyyy-MM-ddTHH:mm:ss”

Then in the service I could do something like this;

DateTime usedatetime = DateTime.ParseExact(PassedDate, "yyyy-MM-ddTHH:mm:ss", CultureInfo.InvariantCulture);

I did try this, it worked fine on my local pc, but failed on the deployment server…”String was not recognized as a valid DateTime.”

I guess my question is; What is the best way to handle date parameters in WCF?
I really hope that makes sense…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T06:29:29+00:00Added an answer on May 17, 2026 at 6:29 am

    It may be a problem with the string PassedDate, what is in that variable?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some doubts regarding service hosting in WCF. I want to host a
Here's what I'm trying to do. We have a SSO authentication service that other
Say I have WCF service contract like this [ServiceContract(CallbackContract = typeof(ICallback1), SessionMode = SessionMode.Required)]
I am trying to develop a .NET 3.5 service application that uses: WCF for
I am trying to write some unit tests that test the endpoints for my
I have hit a wall and have been pulling my hair for quite some
I am working with a fellow employee on a web service layer to our
We have an application which acts as a touchscreen overlay. It provides custom touchscreen
Is using asmx service to update a session variable via ajax call a problem
we are currently on windows server 2008 R2, IIS 7.5 and we are going

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.