toshortstring -> tostring
This commit is contained in:
@@ -51,8 +51,8 @@ namespace FPJ0000
|
||||
{
|
||||
EnsureVisibleAndUsableSize();
|
||||
|
||||
this.dtED.Text = DateTime.Now.AddMonths(1).ToShortDateString();// sdate.AddMonths(1).AddDays(-1).ToShortDateString();
|
||||
this.dtSD.Text = DateTime.Now.AddMonths(-1).ToShortDateString();
|
||||
this.dtED.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd");// sdate.AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd");
|
||||
this.dtSD.Text = DateTime.Now.AddMonths(-1).ToString("yyyy-MM-dd");
|
||||
|
||||
this.dv1.EditMode = DataGridViewEditMode.EditProgrammatically;
|
||||
UpdateUserList();
|
||||
@@ -132,7 +132,7 @@ namespace FPJ0000
|
||||
if (e.KeyCode != Keys.Enter) return;
|
||||
var tb = sender as ToolStripTextBox;
|
||||
var input = tb.Text.Trim();
|
||||
if (input == "") tb.Text = DateTime.Now.ToShortDateString();
|
||||
if (input == "") tb.Text = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
else
|
||||
{
|
||||
string dt = string.Empty;
|
||||
@@ -270,11 +270,11 @@ namespace FPJ0000
|
||||
var f = new FCOMMON.fSelectDay(DateTime.Parse(dtSD.Text));
|
||||
if (f.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
|
||||
var sdDate = f.dtPick.SelectionStart;// DateTime.Parse(DateTime.Now.ToString("yyyy-") + f.selectmon.ToString() + "-01");
|
||||
dtSD.Text = sdDate.ToShortDateString();
|
||||
if (f.dtPick.SelectionStart.ToShortDateString() == f.dtPick.SelectionEnd.ToShortDateString())
|
||||
dtED.Text = sdDate.AddMonths(1).AddDays(-1).ToShortDateString();
|
||||
dtSD.Text = sdDate.ToString("yyyy-MM-dd");
|
||||
if (f.dtPick.SelectionStart.ToString("yyyy-MM-dd") == f.dtPick.SelectionEnd.ToString("yyyy-MM-dd"))
|
||||
dtED.Text = sdDate.AddMonths(1).AddDays(-1).ToString("yyyy-MM-dd");
|
||||
else
|
||||
dtED.Text = f.dtPick.SelectionEnd.ToShortDateString();
|
||||
dtED.Text = f.dtPick.SelectionEnd.ToString("yyyy-MM-dd");
|
||||
refreshData();
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ namespace FPJ0000
|
||||
{
|
||||
var f = new FCOMMON.fSelectDay(DateTime.Parse(dtED.Text));
|
||||
if (f.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
|
||||
dtED.Text = f.dtPick.SelectionStart.ToShortDateString();
|
||||
dtED.Text = f.dtPick.SelectionStart.ToString("yyyy-MM-dd");
|
||||
}
|
||||
|
||||
private void arDatagridView1_DataError(object sender, DataGridViewDataErrorEventArgs e)
|
||||
@@ -304,8 +304,8 @@ namespace FPJ0000
|
||||
private void btAdd_Click(object sender, EventArgs e)
|
||||
{
|
||||
var newdr = this.dSKuntae.EETGW_HolydayRequest.NewEETGW_HolydayRequestRow();
|
||||
newdr.sdate = DateTime.Now.ToShortDateString();
|
||||
newdr.edate = DateTime.Now.ToShortDateString();
|
||||
newdr.sdate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.edate = DateTime.Now.ToString("yyyy-MM-dd");
|
||||
newdr.HolyDays = 0;
|
||||
newdr.HolyTimes = 0f;
|
||||
newdr.cate = "년차";
|
||||
@@ -422,8 +422,8 @@ namespace FPJ0000
|
||||
var sdo = DateTime.Parse(dtSD.Text);
|
||||
var sd = DateTime.Parse(sdo.AddMonths(-1).ToString("yyyy-MM-01"));
|
||||
var ed = sd.AddMonths(1).AddDays(-1);
|
||||
dtSD.Text = sd.ToShortDateString();
|
||||
dtED.Text = ed.ToShortDateString();
|
||||
dtSD.Text = sd.ToString("yyyy-MM-dd");
|
||||
dtED.Text = ed.ToString("yyyy-MM-dd");
|
||||
|
||||
}
|
||||
|
||||
@@ -432,8 +432,8 @@ namespace FPJ0000
|
||||
var sdo = DateTime.Parse(dtSD.Text);
|
||||
var sd = DateTime.Parse(sdo.AddMonths(1).ToString("yyyy-MM-01"));
|
||||
var ed = sd.AddMonths(1).AddDays(-1);
|
||||
dtSD.Text = sd.ToShortDateString();
|
||||
dtED.Text = ed.ToShortDateString();
|
||||
dtSD.Text = sd.ToString("yyyy-MM-dd");
|
||||
dtED.Text = ed.ToString("yyyy-MM-dd");
|
||||
}
|
||||
|
||||
private void toolStripButton1_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user