{selectedDate == "aN-aN-NaN" ? ( <View style={{ alignSelf: "center", marginVertical: 20 }}> <WfTextRedItalic>Please Select a date first</WfTextRedItalic> </View> ) : attendanceRecorded === false && recordedDate !== undefined ? ( <View style={{ alignSelf: "center", marginVertical: 20 }}> <WfTextGreenNormal> Attendance was last recorded on {recordedDate} </WfTextGreenNormal> </View> ) : attendanceRecorded === false && recordedDate === undefined ? ( <View style={{ alignSelf: "center", marginVertical: 20 }}> <WfTextYellowItalic>Please Mark Attendance</WfTextYellowItalic> </View> ) : ( <View style={{ alignSelf: "center", marginVertical: 20 }}> <WfTextGreenNormal> Attendance recorded for date {selectedDate} </WfTextGreenNormal> </View> )}Como puede ver en el código anterior, la 'recordedDate' es lo que quiero establecer el valor de ts como estoy usando script de tipo y nodejs
Los elementos actuales que se obtienen o publican desde mi ClassAttendance Container son:
export declare class ClassAttendance { id: string; studentId: string; classProfileId: string; dateAttended: string; studentAttended: "Yes" | "No" | "Partial"; teacherId?: string; lessonId?: string; startTime?: string; endTime?: string; connectionProblem?: boolean; constructor(studentId: string, classProfileId: string, dateAttended: string, studentAttended?: "Yes" | "No" | "Partial", teacherId?: string, lessonId?: string, startTime?: string, endTime?: string, connectionProblem?: boolean);Si necesita más información, hágamelo saber. Soy nuevo en trabajar con este código.