469,631 Members | 1,776 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

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 1194
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by RHPT | last post: by
12 posts views Thread by Assimalyst | last post: by
30 posts views Thread by fniles | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.