SarkariResultess QA Bank

Date को string में format कैसे करते हैं? — interview में इसका सही जवाब क्या है?

Other 0 Views Verified
Date को string में format कैसे करते हैं? — interview में इसका सही जवाब क्या है?
Sarkari Result QA Bank
Editorially reviewed exam information

Answer & Explanation

4 Answers
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
यह विकल्प सही समाधान नहीं है।