c programming

How to print the date and time

Page 1 of 1

3 Replies - 732 Views - Last Post: 05 March 2010 - 06:41 AM Rate Topic: -----

#1 Guest_heartbroken*


Reputation:

c programming

Posted 05 March 2010 - 04:19 AM

In c programming, how can I print the current day and time?? the output that I want should be look like this.

output: Day: Friday
time: 12:30PM
can someone help me?please. thanks
Is This A Good Question/Topic? 0

Replies To: c programming

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6036
  • View blog
  • Posts: 23,432
  • Joined: 23-August 08

Re: c programming

Posted 05 March 2010 - 06:14 AM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 PlasticineGuy  Icon User is offline

  • mov dword[esp+eax],0
  • member icon

Reputation: 281
  • View blog
  • Posts: 1,436
  • Joined: 03-January 10

Re: c programming

Posted 05 March 2010 - 06:34 AM

Look into time.h.
Was This Post Helpful? 0
  • +
  • -

#4 Munawwar  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 162
  • View blog
  • Posts: 457
  • Joined: 20-January 10

Re: c programming

Posted 05 March 2010 - 06:41 AM

You may want to read about the C time library.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1