1、对获得字符串时间进行时间格式的转换:datetime.Parse(Input).AddDays(-1).ToString("yyyy-MM-dd")
2、通过如下获取部分时间进行时间格式的转化
system_time.Year.ToString+"年"+
system_time.Month.ToString+"月"+
system_time.Day.ToString+"日"+
system_time.Hour.ToString+"时"+
system_time.Minute.ToString+"分"+
system_time.Second.ToString+"秒"
3、对时间实例化
newDateTime(CInt(2019.ToString()),CInt(03.ToString()),1)
TheFirstDay.AddMonths(1).AddDays(-1)
4、其他格式转换