A JM Posted September 3, 2009 Share Posted September 3, 2009 I want to display the date I am using from a query result on my form in a different format? How should I do that? <input type="text" name="los_date" id="los_date" tabindex="23" class="form-inputitem" value="<?php echo htmlentities($row_rstocdetail['los_date'], ENT_COMPAT, 'utf-8'); ?>" size="15" readonly="readonly"/> Thanks. A JM, Quote Link to comment https://forums.phpfreaks.com/topic/172949-solved-display-date-from-query-in-different-format/ Share on other sites More sharing options...
trq Posted September 3, 2009 Share Posted September 3, 2009 Use mysql's DATE_FORMAT() function within your query. Quote Link to comment https://forums.phpfreaks.com/topic/172949-solved-display-date-from-query-in-different-format/#findComment-911513 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.