修改時間呈現
This commit is contained in:
parent
2966e27550
commit
46c4f44fb1
@ -10,6 +10,7 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
namespace SolarPower.Controllers
|
namespace SolarPower.Controllers
|
||||||
{
|
{
|
||||||
@ -604,8 +605,8 @@ namespace SolarPower.Controllers
|
|||||||
switch (post.GroupType)
|
switch (post.GroupType)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
a.TOTALTIME = Convert.ToDateTime(a.TIMESTAMP).ToString("yyyy-MM-dd");
|
a.TOTALTIME = Convert.ToDateTime(a.TIMESTAMP).ToString("yyyy-MM-dd ");
|
||||||
a.TIMESTAMP = Convert.ToDateTime(a.TIMESTAMP).ToString("yyyy-MM-dd HH:mm:ss");
|
a.TIMESTAMP = Convert.ToDateTime(a.TIMESTAMP).ToString("HH tt", CultureInfo.InvariantCulture);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
a.TOTALTIME = Convert.ToDateTime(a.TIMESTAMP).ToString("yyyy-MM");
|
a.TOTALTIME = Convert.ToDateTime(a.TIMESTAMP).ToString("yyyy-MM");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user