Home / Questions / Other Date को string में format कैसे करते हैं? — interview में इसका सही जवाब क्या है? Other 0 Views Verified Date को string में format कैसे करते हैं? — interview में इसका सही जवाब क्या है? #python #python programming #coding #developer Sarkari Result QA Bank Editorially reviewed exam information Share
Verified strftime(dt,'%Y-%m-%d') only strftime(dt,'%Y-%m-%d') only Additional Explanation यह विकल्प सही समाधान नहीं है।
Verified dt.to_date_string() dt.to_date_string() Additional Explanation यह विकल्प सही समाधान नहीं है।
Verified Correct Answer dt.strftime('%Y-%m-%d') dt.strftime('%Y-%m-%d') Additional Explanation strftime format string के अनुसार text देता है।
Verified dt.format('%Y-%m-%d') dt.format('%Y-%m-%d') Additional Explanation यह विकल्प सही समाधान नहीं है।