// Random dummy Imagevar image = ee.Image("COPERNICUS/S2_SR/20200401T001611_20200401T001605_T01WCR");// system:time_start is saved as miliseconds (epoch):var epoch = image.get("system:time_start")print("Epoch system:time_start:",epoch)// This can be converted to a readable date object by passing it to ee.Datevar readableDate = ee.Date(epoch)print("Epoch Time as ee.Date Object:", readableDate)// To get from an Date object to a string, use .format() and the format you want to usevar stringDate = readableDate.format("YYYY-MM-dd")print("ee.Date object to string", stringDate)// To get back to the epoch timestamp (miliseconds) use .millis() on an ee.Date object// This is absolutely necessary if you want to put a new date into system:time_startvar toMillis = readableDate.millis()print("Back from ee.Date to Epoch", toMillis)