472,347 Members | 2,350 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

My post disappeared - date format problem

Hi all :-)

My post on weird date formatting disappeared from my list, so if this a duplicate post, I apologize.

I'm having trouble getting a date to format as just "MM/dd"

I don't care what the year is, I get that information first, then need to format the data as MM/dd to look for the Month and day to check if it is a Holiday. If it is a Holiday, and falls on a Monday (I can get the dddd to format just fine!), then I need to make the due date fall on the Tuesday after the Holiday. I've tried:

ls_due_dt = ld_due_dt.ToString() then, using
String.Format("MM/dd", ls_due_dt)

I've also tried Format(ls_due_dt, "MM/dd") which just gives me a literal string of "MM/dd". Any suggestions? TIA

Coleen

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Nov 20 '05 #1
1 1262
Hi,

Me.Text = Now.ToString("MM/dd")

Ken

------------------

<Coleen> wrote in message news:ul**************@TK2MSFTNGP11.phx.gbl...
Hi all :-)

My post on weird date formatting disappeared from my list, so if this a duplicate post, I apologize.
I'm having trouble getting a date to format as just "MM/dd"

I don't care what the year is, I get that information first, then need to format the data as MM/dd to look for the Month and day to check if it is a
Holiday. If it is a Holiday, and falls on a Monday (I can get the dddd to
format just fine!), then I need to make the due date fall on the Tuesday
after the Holiday. I've tried:
ls_due_dt = ld_due_dt.ToString() then, using
String.Format("MM/dd", ls_due_dt)

I've also tried Format(ls_due_dt, "MM/dd") which just gives me a literal string of "MM/dd". Any suggestions? TIA
Coleen

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup

engine supports Post Alerts, Ratings, and Searching.
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: amith | last post by:
hi I have written javascript for comparing two dates in US format and finding out whether the start date is greater than the end date and vice...
3
by: Lyn | last post by:
Hi, I am developing a project in which I am checking for records with overlapping start/end dates. Record dates must not overlap date of birth,...
7
by: James P. | last post by:
Hello there, In my asp.net page using VB, I have a date text field in mm/dd/yyyy format. When a date is entered, I'd like to validate it to make...
13
by: RHPT | last post by:
I am wanting to capture the XML posted by an InfoPath form with .NET, but I cannot figure out how to capture the XML stream sent back by the...
7
by: | last post by:
Hello, I would like to do the following from a asp.net button click: <form method="POST"...
2
by: Coleen | last post by:
Hi all :-) My post on weird date formatting disappeared from my list, so if this a duplicate post, I apologize. I'm having trouble getting a...
12
by: Assimalyst | last post by:
Hi, I have a working script that converts a dd/mm/yyyy text box date entry to yyyy/mm/dd and compares it to the current date, giving an error...
30
by: fniles | last post by:
On my machine in the office I change the computer setting to English (UK) so the date format is dd/mm/yyyy instead of mm/dd/yyyy for US. This...
11
ollyb303
by: ollyb303 | last post by:
Hello, I am using a dynamic crosstab report to track performance statistics for my company and I have hit a problem. I would like the option...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.