Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Date formatting

This is a discussion on Date formatting within the C and C++ forums, part of the Software Development category; I am looking for sample code that recognizes date of any format even formats like "Jan-1-2007" , "01-February-2007" , mm/dd/yy , dd/mm/yy, etc and display it as mm/dd/yy in C ...

Go Back   Geeks Talk > Software Development > C and C++
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 01-24-2007
Expert Member
 
Join Date: Sep 2005
Posts: 110
Thanks: 8
Thanked 28 Times in 15 Posts
suji is on a distinguished road
Date formatting

I am looking for sample code that recognizes date of any format even formats like "Jan-1-2007" , "01-February-2007" , mm/dd/yy , dd/mm/yy, etc and display it as mm/dd/yy in C language...

Thanks,
Suji
Reply With Quote
The Following User Says Thank You to suji For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 02-06-2007
Expert Member
 
Join Date: Jan 2007
Location: Bangalore
Posts: 252
Thanks: 4
Thanked 8 Times in 7 Posts
Manojks is on a distinguished road
Re: Date formatting

Hey Suji,

First two format is easy to code... but other two format logically its very difficult unless the program know what format the user is giving the date....

For example : mm/dd/yy - 07/07/07

This is difficult for the program to under the format by only seeing the numerals... This is what i faced when i coded...

Thanks
Manoj
Reply With Quote
  #3 (permalink)  
Old 02-16-2007
Junior Member
 
Join Date: Feb 2007
Location: Delhi
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
atul_singh_negi is on a distinguished road
Re: Date formatting

ManojKs is right
Reply With Quote
  #4 (permalink)  
Old 02-16-2007
Expert Member
 
Join Date: Jan 2007
Location: Bangalore
Posts: 252
Thanks: 4
Thanked 8 Times in 7 Posts
Manojks is on a distinguished road
Re: Date formatting

Hi Atul

Just call me Manoj
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Getting a new Date from a Calender control in Playback? eiman WinRunner 4 07-25-2008 06:19 AM
Filling "Date Creation" field with the current day Lokesh M Test Director 1 02-27-2008 08:39 AM
First digit of date is getting truncated JobHelper QTP 3 04-20-2007 05:47 AM
Date Function in Oracle Robert Oracle 4 02-16-2007 06:15 AM
release date Aam23 LoadRunner 1 01-28-2007 03:18 PM


All times are GMT -4. The time now is 07:30 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved