3 Replies - 3780 Views - Last Post: 07 December 2008 - 08:28 PM Rate Topic: -----

#1 User20008  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 06-December 08

Time In 12 hour clock without showing AM or PM.

Posted 06 December 2008 - 05:50 AM

lblH.Caption = Format(Time, "hh am/pm")


Hello,
Can any one please help me in the following Questions...

1) Can we format the time in 12 hour format in such a manner that the label should not display "AM" or "PM". Only it should display the time. i.e. "12" "8" "10" etc.

2) I want the code with the following conditions:

"If the first two letters of Label1 (Form1) are equal to the first two letters of Text1 (form 2) Then Msgbox should display the text of Text2 (form 2) Else do nothing."

Thanks, Hope some one will reply me as soon as possible.

Waiting for the reply.

This post has been edited by User20008: 06 December 2008 - 08:11 AM


Is This A Good Question/Topic? 1

Replies To: Time In 12 hour clock without showing AM or PM.

#2 Zooms  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 78
  • Joined: 04-December 08

Re: Time In 12 hour clock without showing AM or PM.

Posted 06 December 2008 - 06:50 AM

Well, im just going to say what everyone else is going to say.

We will not do your homework, you have to show your code.

You have also failed with the rules, you dont even descripe the problem in either the title or the description.

Follow the forum rules, and im sure your going to get help.
Was This Post Helpful? 0
  • +
  • -

#3 Luce  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 11-November 08

Re: Time In 12 hour clock without showing AM or PM.

Posted 07 December 2008 - 05:28 PM

As Zooms said we're not going to do your homework for you. For the time problem try pressing F1 on time and read the MS help on it. It tells you about all the formats there.

The second question you'll obviously use an if then else statement look at some stuff on string handling to find out how to get hold of just the first two letters and then it's easy from there.
Was This Post Helpful? 0
  • +
  • -

#4 VB Crash  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 130
  • Joined: 28-November 08

Re: Time In 12 hour clock without showing AM or PM.

Posted 07 December 2008 - 08:28 PM

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: http://http.cdnlayer...efault/code.gif

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

Page 1 of 1