473,385 Members | 1,347 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,385 software developers and data experts.

convert system date in dd/MMM/yyyy format

Hi Friends,

I am Using ASP.NET1.1 and i want to convert the system date, in dd/MMM/yyyy format.

Earlier i use
lblDate.Text = System.DateTime.Now.AddMinutes(30).ToString();

But i want to convert this format to dd/MMM/yyyy, can anybody provide me some help or what can i do please suggest me...


Thnx
Feb 15 '08 #1
3 3970
krille
26
Hmmm dont really get what you want to do so im guessing you want something like this:

lblDate.Text = System.DateTime.Now.AddMinutes(30).ToString("dd/MMM/yyyy ");


Just add "dd/MMM/yyyy" int the ToString to get the wanted format

GL
Krille
Feb 15 '08 #2
Hmmm dont really get what you want to do so im guessing you want something like this:

lblDate.Text = System.DateTime.Now.AddMinutes(30).ToString("dd/MMM/yyyy ");


Just add "dd/MMM/yyyy" int the ToString to get the wanted format

GL
Krille

Yes sir,

But i got error

The name 'dd' does not exist in the class or namespace 'test.UserControls.IndexHeader'
Feb 15 '08 #3
kenobewan
4,871 Expert 4TB
Hi Friends,

I am Using ASP.NET1.1 and i want to convert the system date, in dd/MMM/yyyy format.

Earlier i use
lblDate.Text = System.DateTime.Now.AddMinutes(30).ToString();

But i want to convert this format to dd/MMM/yyyy, can anybody provide me some help or what can i do please suggest me...

Thnx
The format should be dd/MM/yyyy. Rather than convert methods I usually ensure that it is going to be consistent by setting the culture in the web.config. HTH.
Feb 15 '08 #4

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

Similar topics

4
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and...
2
by: Franck | last post by:
Hi, 'm gettin mad about date conversion. Here is the point. Got and add-in for Excel which call functions from a web service (on a remote server) The remote server has regional settings...
1
by: abcabcabc | last post by:
I write an application which can let user define own date format to input, How to convert the date string to date value with end-user defined date format? Example, User Defined Date Format as...
10
by: bonnie.tangyn | last post by:
Dear all In my ASP page, user can enter date in dd/mm/yyyy format. How can I use Javascript to convert dd/mm/yyyy to yyyy-mm-dd hh:mm:ss. Please give me some advices. Cheers Bon
1
by: Swati Gunda | last post by:
Hi, I am working on visual studio.net (1.1). I want to convert the date from mm/dd/yyyy format into dd/mm/yyyy. I have writtern the following code in c# DateTime dt; string...
2
by: thewilldog | last post by:
Hello, I've reviewed the archives here to address the issue, but I'm still running into problems. I've got a table field populated with the record date in text "YYYYMMDD" To convert it into a...
4
by: RP | last post by:
I am using SQL Server 2005 as backend. I have a Text Box that accepts Date in the format dd-MM-yyyy. But when I attempt to insert a record, an error is displayed: Cannot convert char to DateTime...
4
by: Ashraf Ansari | last post by:
Hi, How Can I convert MM/dd/yyyy format into dd/MM/yyyy and the date which is converted into dd/MM/yyyy should be in DateTime format. I do not want to store it as a string. Please help ...
4
by: thomasc1020 | last post by:
This is regarding VB.NET 2003. Variable 'Date' is a string and it contains date information in this format: "DEC/05/2007". Now I am trying to convert the format as "2007-12-05". Is it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.