thbaig Posted November 17, 2007 Report Share Posted November 17, 2007 hello,I want to format date in my shell script so that I may use it as file name.How can I format date from default formatting to dd/mm/yy ? Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted November 17, 2007 Report Share Posted November 17, 2007 My guess is that the default formatting is what you specify in your Regional and Language Options; is it not?If not, does your scripting language allow substring handling? Then you can just reformat it. Quote Link to comment Share on other sites More sharing options...
thbaig Posted November 17, 2007 Author Report Share Posted November 17, 2007 the default format is Day mm/dd/yyyy e.g Friday 16......but I just want to get date in dd/mm/yyyy (excluding day)My guess is that the default formatting is what you specify in your Regional and Language Options; is it not?If not, does your scripting language allow substring handling? Then you can just reformat it. Quote Link to comment Share on other sites More sharing options...
ɹəuəllıʍ ʇɐb Posted November 17, 2007 Report Share Posted November 17, 2007 If the function you use to obtain the date does not provide an alternative formatting, then you will have to use some form of substring editing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.