473,409 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

Date string formating

11
A have a TextBox binded to DateTime type field and I would like the output to be formated as for example: 20/10/2007

This code below does that but it uses dots for separation: 20.10.2007
Text='<%# Bind("dtStart", "{0:dd/MM/yyyy}") %>'

Is there way to format it this using char '/' for separation like in above example?

Thanks,
Daniel
Aug 5 '07 #1
1 1205
dizzy77
11
Found it:
"{0:dd\/MM\/yyyy}"
Aug 18 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John Carnahan | last post by:
This gives me the (SHORT) date format I'm looking for on my development sys. But on the ISP's system I get the Date and time (LONG). Dim sd As String = master_detailsDV(0)("START_ACT") ...
1
by: JAPHET | last post by:
I am Trying to Format date in my Datagrid to SHORTDATE format with the following codes, Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As...
50
by: z. f. | last post by:
HI, i have string in format dd/mm/yyyyy hh:mm:ss and giving this as an input to DateTime.Parse gives a string was not recognized as a valid date time format string error. how do i make the parse...
2
by: newsgroups.jd | last post by:
Thanks in advance - Trying to get this format returned when selecting a date on a calendar and having a little difficulty Format needs to be mmyy/Dayd Example Feb 3, 2004 would return...
12
by: Rob Meade | last post by:
Hi all, Ok - I've come from a 1.1 background - and previously I've never had any problem with doing this: Response.Write (Session("MyDate").ToString("dd/MM/yyyy")) So, I might get this for...
1
by: amjad | last post by:
how to change date format with asp.net 1.1 using c# code like 03/12/1955 00:00:00 to 03/12/1955 thanks can i overload string function like public override string ToString() {...
4
by: jon.lewis | last post by:
I'm populating an unbound combo on a form as follows: Dim strRowSource As String Dim mydate As Date mydate = #1/1/2000# strRowSource = Format(mydate, "MMM YY") Do Until Format(mydate, "MMM...
1
seshu
by: seshu | last post by:
hi everybody this is seshu i have problem in formating the date actualy the data base iam using is mysql which is following yyyy-mm-dd format where as in my front end ie vb.net...
5
by: cmdolcet69 | last post by:
How can i format a Julian day and only the single digit in the year. I only wnat the julian day and the last digit of the year (7) For example the code below i thought would do this however i...
9
by: TC | last post by:
Hi. I have some ASP written in VB.net which is currently installed on a customers server. The asp connects to a local MySql database and retrieves data for the customers customers. If you see...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.