api date and time formate get:
Container(
// height: 30,
// width: 30,
margin:
const EdgeInsets.only(top: 120, left: 190),
decoration: BoxDecoration(
color: Colors.black38,
// borderRadius: BorderRadius.horizontal(),
),
child: Padding(
padding: const EdgeInsets.all(4.0),
child: Text(
new DateFormat.yMd().add_jms().format(
DateTime.parse(
dealOfDayData[index]["Startdate"])),
style: TextStyle(
fontSize: 14.0,
color: Colors.white,
),
),
// child: Text(
// jiffy[index]["Startdate"],
// ),
),
),
Container(
// height: 30,
// width: 30,
margin:
const EdgeInsets.only(top: 160, left: 190),
decoration: BoxDecoration(
color: Colors.black38,
// borderRadius: BorderRadius.horizontal(),
),
child: Padding(
padding: const EdgeInsets.all(4.0),
child: Text(
new DateFormat.yMd().add_jms().format(
DateTime.parse(
dealOfDayData[index]["Enddate"],
),
),
style: TextStyle(
fontSize: 14.0,
color: Colors.white,
),
),
),
),
0 Comments