Results 1 to 9 of 9

Thread: [RESOLVED] convert text to dd/mm/yyyy format

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Posts
    8

    Resolved [RESOLVED] convert text to dd/mm/yyyy format

    I'm trying to convert the "29/09/2009" string to date format dd/mm/yyyy

    I'm using visual studio 2008, and i've tried the following:

    dim sdate as string
    sdate = "29/09/2009"

    mydate = DateTime.Parse(sDate, Globalization.CultureInfo.CreateSpecificCulture("el-GR"))

    and

    mydate = Date.Parse(sDate).ToShortDateString()

    and i always get #9/29/2009# instead of #29/09/2009# that i want

    Any help please?
    Last edited by tkoletsis; Sep 29th, 2009 at 06:13 AM.

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