- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
public void ptsb() {
DateTime NW = System.DateTime.Now;
int gh = NW.Day + 1;
int hj = NW.Month;
int NG = NW.Year;
bool vg = System.DateTime.IsLeapYear(NW.Year);
if (hj==2) {
if (vg) {
if (gh > 29) {
gh = 1;
hj = 3; } }
if (gh > 28) {
gh = 1;
hj = 3;
} }
else{
if (hj == 4) {
if (gh > 30)
{
gh = 1;
hj = 5; } }
else {
if (hj == 6) {
if (gh > 30) {
gh = 1;
hj = 7; } }
else
{
if (hj == 9) {
if (gh > 30) {
gh = 1;
hj = 10;
} }
else {
if (hj == 11) {
if (gh > 30) {
gh = 1;
hj = 12; } }
else {
if (gh > 31) {
gh = 1;
hj = hj + 1;
if (hj == 13){
hj = 1;
NG = NG + 1; }}}}}}}
if (NW.Month < 10) {
if (NW.Day < 10) {
d = "0" + NW.Month + "-" + "0" + NW.Day + "-" + NW.Year;
}
else {
d = "0" + NW.Month + "-" + NW.Day + "-" + NW.Year; } }
else {
if (NW.Day < 10) {
d = NW.Month + "-" + "0" + NW.Day + "-" + NW.Year; }
else {
d = NW.Month + "-" + NW.Day + "-" + NW.Year; } }
if (hj < 10) {
if (gh < 10) {
b = "0" + hj + "-" + "0" + gh + "-" + NG; }
else {
b = "0" + hj + "-" + gh + "-" + NG; } }
else {
if (gh < 10) {
b = hj + "-" + "0" + gh + "-" + NG; }
else {
b = hj + "-" +gh + "-" + NG; }}}