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, 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. 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
Archived
This topic is now archived and is closed to further replies.