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

  • SEARCH
  • Home
  • 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 6595061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:53:28+00:00 2026-05-25T17:53:28+00:00

currentDateTime = [NSDate date]; dateFormatter = [[NSDateFormatter alloc]init] ; [dateFormatter setDateFormat:@yyyy-mm-dd hh:mm]; // 1999-12-12

  • 0
currentDateTime = [NSDate date];
dateFormatter = [[NSDateFormatter alloc]init] ;
[dateFormatter setDateFormat:@"yyyy-mm-dd hh:mm"];   // 1999-12-12 14:50
dateInString = [dateFormatter stringFromDate:currentDateTime]; 
metTime.text=dateInString;
NSLog(@"date %@", dateInString);

I try send the current time to web service method as a string paramater. I can see it but when pass dateInString I got an error such as

System.Web.Services.Protocols.SoapException: Server was unable to process request. —> System.FormatException: String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at System.Convert.ToDateTime(String value)
at MrkService.MrkService.AddMeetingInfo(String phoId, Int32 metId, Int32 cusId, Int32 metTyp, Int32 metRes, String desc, String contc, String endTime)
— End of inner exception stack trace —

is there anyone know this problem (web service method parameter is string not date)

  • 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-25T17:53:29+00:00Added an answer on May 25, 2026 at 5:53 pm

    This pattern looks very wrong to me:

    yyyy-mm-dd hh:mm
    

    See how you’re using “mm” twice? And “hh” normally means the 12 hour clock… I suspect you want

    yyyy-MM-dd HH:mm
    

    where MM means the month (not the minute) and HH means the 24 hour clock. That’s assuming that iOS date and time patterns work similarly to other platforms…

    In fact, you may need to make further changes to the pattern – for instance to include seconds, and possibly a T, e.g.

    yyyy-MM-ddTHH:mm:ss
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following javascript code: <script type=text/javascript> $(function () { var currentDateTime =
Using Delphi, I need a function to evaluate the current date and see if
How can I use the SELECT Now() As CurrentDateTime for GMT, as it displays
Is there any way to find the current format of date in the time
I have a table: CREATE TABLE [Lines] ( [Value] TEXT NOT NULL, [AddedOn] TIMESTAMP
I have a memory leak at NSDate . Please review the code below. -(void)myMethods:(NSDate
I use this code to get Server Date but I really don't understand.CreateDateTime() is
I have an ASM script that displays date(day, month, year) and time(hours, minutes, seconds).
I have a simple log function that needs to print the current date and
I've been working on a project where a date is calculated based on a

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.