Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to create afolder based on month,year,Day?

I have a application where i want to create afolder based on month,year and day...The code i used is bellow:

l_strPath = l_strfinishPdffilePath + l_strYear;
if(!Directory.Exists(l_strPath))
{
Directory.CreateDirectory(l_strPath);
}
l_strPath = l_strPath + "/" + l_strMonth;
if(!Directory.Exists(l_strPath))
{
Directory.CreateDirectory(l_strPath);
}
if(!Directory.Exists(l_strPath))
{
l_strPath = l_strPath + "/" + l_strDay;
}

Iam not able to split the month and Year..Pls answer me if anyone knows it..
[573 byte] By [sujha] at [2007-11-11 10:21:31]
# 1 Re: How to create afolder based on month,year,Day?
I don't understand what you mean by "not able to split the month and year": split them from what? Don't you already have the month and year in the l_strYear and l_strMonth variables?
Phil Weber at 2007-11-11 23:12:02 >