Results 1 to 19 of 19

Thread: format of date

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    425

    Question format of date

    how can we change the format of "DATE" ??

    like today = Date()

    it will be like 4/13/2002

    can i have something like dd/mm/yyyy instead of the default mm/dd/yyyy?

  2. #2
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    try:

    MyDate = #January 27, 1993#

  3. #3
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628

    Re: format of date

    Originally posted by hyper88
    how can we change the format of "DATE" ??

    like today = Date()

    it will be like 4/13/2002

    can i have something like dd/mm/yyyy instead of the default mm/dd/yyyy?
    um....

    VB Code:
    1. Private Sub Command1_Click()
    2.     Dim Today As Date
    3.     Today = #1/27/02#
    4. End Sub

    put the # around it

  4. #4
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429
    Or use FORMAT
    VB Code:
    1. Private Sub Form_Load()
    2.  MsgBox Format(Date, "dd/mm/yyyy")
    3. End Sub

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    are you talking about

    today = format(date(),"DD/MM/YYYY")



    ?

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Bruce Fox
    Or use FORMAT
    VB Code:
    1. Private Sub Form_Load()
    2.  MsgBox Format(Date, "dd/mm/yyyy")
    3. End Sub



    today is not my day.

  7. #7
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    Originally posted by mendhak





    today is not my day.
    VB Code:
    1. Private Sub Mendhak (Smoking Frog As A :rolleyes: :rolleyes: )
    2. Dim Today As Bad
    3. Today = Not My Day

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Vanguard-MnC


    VB Code:
    1. Private Sub Mendhak (Smoking Frog As A :rolleyes: :rolleyes: )
    2. Dim Today As Bad
    3. Today = Not My Day
    ooh! I think i'll use that snippet... Now I can light my cigz with ease.


  9. #9
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    Originally posted by mendhak


    ooh! I think i'll use that snippet... Now I can light my cigz with ease.

    lolz

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Check out my custom smily:

    Is it supposed to be a red x?

  11. #11
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    hey the site you use for making the do not click thing is cool! i can never find a site that gives you 100MB of free space!

  12. #12
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    Originally posted by mendhak



    Is it supposed to be a red x?
    yes. geocities is so screwed up

  13. #13

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    425
    thanks alot guys

    anyway i have another question here......
    how do i check all the boxes avaliable on a listview or uncheck all at 1 time? is there a simple function for it or i have to use a for loop a check all 1 by 1?

  14. #14
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    Originally posted by mendhak



    Is it supposed to be a red x?

    there i fixed it. like it??

  15. #15
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    Originally posted by hyper88
    thanks alot guys

    anyway i have another question here......
    how do i check all the boxes avaliable on a listview or uncheck all at 1 time? is there a simple function for it or i have to use a for loop a check all 1 by 1?
    ask the stoned froggy

  16. #16
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Vanguard-MnC
    hey the site you use for making the do not click thing is cool! i can never find a site that gives you 100MB of free space!
    yup. Very few left out there.

  17. #17
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by Vanguard-MnC



    there i fixed it. like it??


    You're not allowed to hotlink to images on 0catch. I have NO idea how you did that!!

    And I dont' know about listview. sorry to pollute your thread like this hyper88.

    How bout posting again in a new thread?

  18. #18

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Posts
    425
    haha it's ok.......
    nice smiley =x

  19. #19
    Fanatic Member Vanguard-MnC's Avatar
    Join Date
    Apr 2002
    Location
    Inactive for like ever.
    Posts
    628
    Originally posted by hyper88
    haha it's ok.......
    nice smiley =x
    thanks! It only took me 2 minutes to make it !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width