472,353 Members | 1,276 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Converting "yyyymmdd" date string into "dd monthname yyyy" format

I know this is probably simple but I cannot find a method of
converting a date string into a format that matches the DatePicker
format in C#

eg string "20080131" converted to "31 January 2008"

I tried datetime.parseexact but could not find the definition for the
appropriate format string.

This would be a very useful tool fo me. Any ideas,please?

Mark
Jan 31 '08 #1
2 4603
Mark,

The format to use when parsing is "yyyyMMdd" while the output for the
new output is "dd MMMM yyyy".
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"stainless" <Ma************@gmail.comwrote in message
news:e1**********************************@d21g2000 prf.googlegroups.com...
>I know this is probably simple but I cannot find a method of
converting a date string into a format that matches the DatePicker
format in C#

eg string "20080131" converted to "31 January 2008"

I tried datetime.parseexact but could not find the definition for the
appropriate format string.

This would be a very useful tool fo me. Any ideas,please?

Mark
Jan 31 '08 #2
On input parsing you would use "yyyyMMdd", and on output use "dd MMMM yyyy",

"stainless" wrote:
I know this is probably simple but I cannot find a method of
converting a date string into a format that matches the DatePicker
format in C#

eg string "20080131" converted to "31 January 2008"

I tried datetime.parseexact but could not find the definition for the
appropriate format string.

This would be a very useful tool fo me. Any ideas,please?

Mark
Jan 31 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Scott Kinney | last post by:
I have a database that I imported from a csv file (I know, all the stories start out this way...) The dates were given as text strings of the...
4
by: yf | last post by:
A KB article "http://support.microsoft.com/default.aspx?scid=kb;en-us;209599" tells that the maximum number of records that a table may hold if the...
3
by: FlexCrush | last post by:
Is it possible to convert a date format ("yyyymmdd") to ("mm/dd/yy")? Thank you in advance
4
by: jty202 | last post by:
I have string that contains a date in this format (14-Jan-05). I want to store in date object if theres one and access each part of the date (month,...
3
by: acko bogicevic | last post by:
Hi everybody On page i have text box txtDate. User writes date in dd.mm.yyyy format. When the button btnSearch is clicked i have to query...
5
by: Doug Bell | last post by:
Hi, I have some data in the format of yyyymmdd (Int32) that I want to display, in a datagrid, formatted in International Date Format dd MM yyyy. ...
0
by: David Garamond | last post by:
I want to know how functional indexes are used "in the real world". Here are the common uses: * non-unique index on the first parts of a longish...
3
by: Assimalyst | last post by:
Hi, I am trying to convert a UK formated date in a textbox to sql server format. dd/MM/yyyy -> yyyyMMdd. Here's the code: IFormatProvider...
17
by: Petyr David | last post by:
Just looking for the simplest. right now my perl script returns an error messge to the user if the date string is invalid. would like to do this...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.